Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4151152pxy; Mon, 26 Apr 2021 20:15:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHZPs/lEpIbWb7ETE9VkTHe0t7xcF4PgAQpAhtpx2mpw6F0p62oRRwjW1hElt2YbZN9E68 X-Received: by 2002:a17:906:9990:: with SMTP id af16mr20878182ejc.195.1619493321631; Mon, 26 Apr 2021 20:15:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619493321; cv=none; d=google.com; s=arc-20160816; b=EtFJm4J5bqcRrZwLuqg7EsE7kjMPIIA7mAoWXJrZ7O5P13egDiGvW0ZmZbnyEFxKxs hXt+WJzSpf+6hpCGzxNrhDrjx5p73QToUvA53frzkzUdT6YeJfZ293N59BWyCfCVkRey zKNN8U5WSTlnjkiLbyJW0bduClhwtygDPK1HPH2m8a0IX+yS+ZT6Y3bjI3ZflVjAhPQH eiRwx2wc7uabjJXW1/IMGDB8GU98mAvfs2l8nvb9r6QSQ72qv1iluHukd4aQELGW5uiY vZJZK0rYfbX0bJMCLcKRhzHCv3rK/LzpbiGCr6/B6qfGe8JtgiKsK/aNgJCbhsSG7nhb RS4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=CgpK97dwQ7jxO/6Xiazk1B15iaHiHK4/6xEOZQpL8nc=; b=jelloIj+3EYWiqibM6WQlmIaxYI8/HoZ1mEt/yivILt/gWZ5v+tCjcyuYg0+2JwkKb aYWVMW4K2zgTcFNEtHvD0iUjob/duzgZZb7uZsr+3DNSNz+3ppCAYK2JfR4pQs2jhn7Q PYRhD6T2F2vyixITUNj/uHZmy3TKdgO7sMs5Le4JAheD7Xj3h0Sf46k6AU4dDE9Cueih 6cARrlu8h6baUy4AwowcU3KscNYgrYnDG9PeyvUrGxw3XwApb2MEvh6qEuiVsdgKdty/ bwTZ30sWpCejFnQs+/jfrwQvMamT9sJ5L+YIlb/OV+GKhmCgmqr4RHLl21sQ38uba9TI 0aqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=esSVxOBZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b21si1184747edw.501.2021.04.26.20.14.46; Mon, 26 Apr 2021 20:15:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=esSVxOBZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232157AbhD0DOi (ORCPT + 99 others); Mon, 26 Apr 2021 23:14:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231363AbhD0DOh (ORCPT ); Mon, 26 Apr 2021 23:14:37 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44B52C061574; Mon, 26 Apr 2021 20:13:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=CgpK97dwQ7jxO/6Xiazk1B15iaHiHK4/6xEOZQpL8nc=; b=esSVxOBZiXjZRu/R53mWWIlSVr qTS4lxp3siZv6iEuYOLEAvQKD3PFP7ycbteCBLz7722M7K2ljd8WFZrPE/4q+xKwbfsWLUaju91Dl CxLfS0yvfW4nK1zOWgcbKwyiFOWG1Z0kWpbUrk60dh1hFoG7YZ2nDopoHwhkvYioK6f6rU22kme7d 5xixmRVko7OY6QqUIhhgP5tv5b5QE+t2q+RkBIlIi6zdjpu14XQxqhLwvqhHDExSNvbeg7MzehRrL ZEeNe0oD9qZApHO/w7/zruuHpyHJOXOEUGOaud4gyW2/YeUiZ6Y4LpwUKLVoQpFHBBySLerbda9Ne zN59SHGg==; Received: from [2601:1c0:6280:3f0::df68] (helo=casper.infradead.org) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lbEAV-006PF2-A5; Tue, 27 Apr 2021 03:13:50 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Russell King , linux-clk@vger.kernel.org Subject: [PATCH] clk: : correct clk_get_parent() documentation Date: Mon, 26 Apr 2021 20:13:42 -0700 Message-Id: <20210427031342.5333-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Make the kernel-doc return value agree with both the stub implementation in and the non-stub function in drivers/clk/clk.c. Signed-off-by: Randy Dunlap Cc: Russell King Cc: linux-clk@vger.kernel.org --- There are several drivers that call clk_get_parent() and use its return value as though it returns an ERR_PTR(). I am working on a patch series to fix those. include/linux/clk.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- linux-next-20210426.orig/include/linux/clk.h +++ linux-next-20210426/include/linux/clk.h @@ -744,8 +744,8 @@ int clk_set_parent(struct clk *clk, stru * clk_get_parent - get the parent clock source for this clock * @clk: clock source * - * Returns struct clk corresponding to parent clock source, or - * valid IS_ERR() condition containing errno. + * Return: &struct clk corresponding to parent clock source, or + * %NULL if clk is %NULL. */ struct clk *clk_get_parent(struct clk *clk);