Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9981380ybi; Wed, 24 Jul 2019 13:29:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7JM9eEwWaeOS07sGwBOb6OicYSceM89atSy5OsYUY3bhxlpI59XWuWOK6ubUlLzyu+Rg0 X-Received: by 2002:aa7:8641:: with SMTP id a1mr13117829pfo.177.1564000159714; Wed, 24 Jul 2019 13:29:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564000159; cv=none; d=google.com; s=arc-20160816; b=I4mDL9Cval6SJJDJ4DJHn375cgiQmOrKbJ4D2pZl8aCIaBwj5uI75V/OKP4Gw24xls FLnkLPVTofWQ7/GYfhNkxb5hSj91tpXRlrU6t4reKWvPM828SbXUxswYoA7hVPWawZIu 58moTrQu/n+vfmurnCOiK+M+GqEJu7vkIm0IOMd+IZwnISmyfvPfskOzMWo0e6dfno+F n5lFnx/T3QGVvZLGVjMuCkqOzoC0lb3OEeOOlOMAaDc9W6hJJh8WzrcjYd7mAXg4rkSN Mqfb/hKjP0bot1A7KQg5DZnzNaghP4wl/Ao3Ak55FCawM+wZIb/RjTEmSceKhBkyM92B mFrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=vjZ/6srqiNNqjkA9geLLXJ8UPdDkWP2D/R7kcX9RewA=; b=TN+JmbPfYVW04RkHHNb7r6uN/ue73zOJIIvjvr/wHEi+EIIb9vO6egVjH4LoZtdPUf w3hb+3MlplJ1cn0pVUyhwJBH2XsxRq9PqTHCFOlVeEdDaG8kuoUrFGUSz1hkDSx4ULS7 svOmo6LO5AGZjtvP1moI2mlXWaNbi3wkonHdaSzPTtY1ginIP/bbM8hQkt9Te0GHe8Uu PcSdVgfqeu2W97TuuuG8kWmSKhZ073ZrHfJNcGiWiw9N+SzbCPwAFxogwdWg7CtpRxot UBhq8bqdNiUna+3hzRlqzKfd7k/Gztyr2FEbZNFd3gr8Bp8eUbuPqF8glaqnR70kmq0D eRJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="ccY/z40t"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1si16392172pgb.482.2019.07.24.13.29.05; Wed, 24 Jul 2019 13:29:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="ccY/z40t"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388959AbfGXTf0 (ORCPT + 99 others); Wed, 24 Jul 2019 15:35:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:55148 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388852AbfGXTdV (ORCPT ); Wed, 24 Jul 2019 15:33:21 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D11EB2238C; Wed, 24 Jul 2019 19:33:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563996801; bh=BX83SWqxlR2Q+6R81dSPYHiAW4Em1qQCcn0O2SZTYd4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ccY/z40trOJcEW9f/2NisRoevm6uzfECEqID6IF+4IMwuTnFsEO9N9IBr42da7Mr8 HEuAsj2gjbo+vaFokKjkLvm3hrGDQq2mcGemdWYuNzPBAiYMPfSoKMWsVJgCu28FUI OQOjdwMmFT8R/YVUhrIV9P6jxMGIx9zxn/e9DdtY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Geert Uytterhoeven , Linus Walleij , Sasha Levin Subject: [PATCH 5.2 222/413] gpiolib: Fix references to gpiod_[gs]et_*value_cansleep() variants Date: Wed, 24 Jul 2019 21:18:33 +0200 Message-Id: <20190724191750.708775987@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190724191735.096702571@linuxfoundation.org> References: <20190724191735.096702571@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 3285170f28a850638794cdfe712eb6d93e51e706 ] Commit 372e722ea4dd4ca1 ("gpiolib: use descriptors internally") renamed the functions to use a "gpiod" prefix, and commit 79a9becda8940deb ("gpiolib: export descriptor-based GPIO interface") introduced the "raw" variants, but both changes forgot to update the comments. Readd a similar reference to gpiod_set_value(), which was accidentally removed by commit 1e77fc82110ac36f ("gpio: Add missing open drain/source handling to gpiod_set_value_cansleep()"). Signed-off-by: Geert Uytterhoeven Link: https://lore.kernel.org/r/20190701142738.25219-1-geert+renesas@glider.be Signed-off-by: Linus Walleij Signed-off-by: Sasha Levin --- drivers/gpio/gpiolib.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index be1d1d2f8aaa..bb3104d2eb0c 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -3025,7 +3025,7 @@ int gpiod_get_array_value_complex(bool raw, bool can_sleep, int gpiod_get_raw_value(const struct gpio_desc *desc) { VALIDATE_DESC(desc); - /* Should be using gpio_get_value_cansleep() */ + /* Should be using gpiod_get_raw_value_cansleep() */ WARN_ON(desc->gdev->chip->can_sleep); return gpiod_get_raw_value_commit(desc); } @@ -3046,7 +3046,7 @@ int gpiod_get_value(const struct gpio_desc *desc) int value; VALIDATE_DESC(desc); - /* Should be using gpio_get_value_cansleep() */ + /* Should be using gpiod_get_value_cansleep() */ WARN_ON(desc->gdev->chip->can_sleep); value = gpiod_get_raw_value_commit(desc); @@ -3317,7 +3317,7 @@ int gpiod_set_array_value_complex(bool raw, bool can_sleep, void gpiod_set_raw_value(struct gpio_desc *desc, int value) { VALIDATE_DESC_VOID(desc); - /* Should be using gpiod_set_value_cansleep() */ + /* Should be using gpiod_set_raw_value_cansleep() */ WARN_ON(desc->gdev->chip->can_sleep); gpiod_set_raw_value_commit(desc, value); } @@ -3358,6 +3358,7 @@ static void gpiod_set_value_nocheck(struct gpio_desc *desc, int value) void gpiod_set_value(struct gpio_desc *desc, int value) { VALIDATE_DESC_VOID(desc); + /* Should be using gpiod_set_value_cansleep() */ WARN_ON(desc->gdev->chip->can_sleep); gpiod_set_value_nocheck(desc, value); } -- 2.20.1