From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966341AbcKJUzU (ORCPT ); Thu, 10 Nov 2016 15:55:20 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:27432 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966285AbcKJUzT (ORCPT ); Thu, 10 Nov 2016 15:55:19 -0500 X-IronPort-AV: E=Sophos;i="5.31,620,1473112800"; d="scan'208";a="199993991" Date: Thu, 10 Nov 2016 21:55:16 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: Russell King , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: question about clk_get_parent Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As far as I can see in the various definitions of clk_get_parent, they all return either NULL or a value stored in a structure field. But the documentation with the prototype in includ/linux/clk.h says that it returns a valid IS_ERR() condition containing errno. Are ERR_PTR values stored in the structure fields? thanks, julia