From patchwork Mon May 17 13:59:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 440104 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp1130827jac; Mon, 17 May 2021 07:15:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyUPwOhzUQ35Leb9DKofY9XplE9TaeHcPC6FhAcm7qlZ0ziCQhWTT3kiZl+d1hgx7JkEUR X-Received: by 2002:a02:ab87:: with SMTP id t7mr204063jan.57.1621260932919; Mon, 17 May 2021 07:15:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621260932; cv=none; d=google.com; s=arc-20160816; b=t2UQZ480bqv4CLeU9rFKxJ7Lu+ygjJceerm8dAhnR546hsOlHSari8EPMQ5R5XgwSj hk8/7Jsezuo1W/TrX5Y6OEZlqqO+uARAI2mtPYeod9RplunHdsLBHeBv/AMZOJcdBHJ1 vppttfgCECAkKixV888BV743zNEHnnYI8fBsjlitTYLXKJgPjfRZ2RDG7qcn8zxmKiUu hRAxzaRpMGn9d8c5Adv8CLcCAhB9U8qSWT9dhJP/1VplymjOGEGPw04zNxwGbAMweRx6 iJ5voeXmWCuvbaP1ZYX9G1hCOo6TJFUrVO5bN0+kWyl3zgFSu7oB0aH4ycueXIaop5mg gEKA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=VpUo5TFKLM51TUXTfbk5r6HQnTVypUZLOzk21E8EB9Q=; b=Frh1iIlYkDelapAfQ6Jrwxudwtn2IIvtq0Qf2XgooYZJrl2zdpEjVlhp0Rv+n9vbGh 07zazsClzDKo4PtH8/1I56Pw7/v3AFvHT/L3sSnCvQUOBDWX1Hg3m3gKrT9qxGpur50/ LAibEOMSh6hX9nfgCA4yLkQyq60p4HB8mS7trlS7W7pdEAd4ZVEhhg0DGbz606a2S/Cu qNYHPXZKgJftuAUsTSeIuR8Q424QMXnfuco86CzzvYCFDVOLo4ejQigIhjuZffFM5nar +RvlYP4S1x6dwNbrY0y+agSjjQGfh6Tbg+jaLY/tDgrVI57uUbZpstSgHr0ch2WFyPms DpsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MQZIXgqu; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p8si447020ioj.46.2021.05.17.07.15.32; Mon, 17 May 2021 07:15:32 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-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=@linuxfoundation.org header.s=korg header.b=MQZIXgqu; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238882AbhEQOQr (ORCPT + 12 others); Mon, 17 May 2021 10:16:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:46476 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239011AbhEQOOn (ORCPT ); Mon, 17 May 2021 10:14:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1D76C613E5; Mon, 17 May 2021 14:08:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621260535; bh=30jsrc77WtINc5vw2shIcoQN3HjUq1nr2Dhbb6r4OeY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MQZIXgqun2/HUq61s7qTuAsgoVvdOKAxBDdN8boCn0Yj0c8c0KoOpRYbQMl1z1ism m521Mok1loJC662hJ2i22RshjUD2vS5c7ufF9B75aZKn3rIAzKQjn4wOfjzXlEHRi1 emr0yB38f3KHx6yV+TqVFyjMmg1EmJOXbtjTAVtQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Pavel Machek , Sasha Levin Subject: [PATCH 5.12 125/363] leds: lgm: fix gpiolib dependency Date: Mon, 17 May 2021 15:59:51 +0200 Message-Id: <20210517140306.846128736@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140302.508966430@linuxfoundation.org> References: <20210517140302.508966430@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Arnd Bergmann [ Upstream commit 34731ed13e8a8ca95fa0dca466537396b5f2d1af ] Without gpiolib, the driver fails to build: drivers/leds/blink/leds-lgm-sso.c:123:19: error: field has incomplete type 'struct gpio_chip' struct gpio_chip chip; ^ include/linux/gpio.h:107:8: note: forward declaration of 'struct gpio_chip' struct gpio_chip; ^ drivers/leds/blink/leds-lgm-sso.c:263:3: error: implicit declaration of function 'gpiod_set_value' [-Werror,-Wimplicit-function-declaration] gpiod_set_value(led->gpiod, val); ^ drivers/leds/blink/leds-lgm-sso.c:263:3: note: did you mean 'gpio_set_value'? include/linux/gpio.h:168:20: note: 'gpio_set_value' declared here static inline void gpio_set_value(unsigned gpio, int value) ^ drivers/leds/blink/leds-lgm-sso.c:345:3: error: implicit declaration of function 'gpiod_set_value' [-Werror,-Wimplicit-function-declaration] gpiod_set_value(led->gpiod, 1); ^ Add the dependency in Kconfig. Fixes: c3987cd2bca3 ("leds: lgm: Add LED controller driver for LGM SoC") Signed-off-by: Arnd Bergmann Signed-off-by: Pavel Machek Signed-off-by: Sasha Levin --- drivers/leds/blink/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.30.2 diff --git a/drivers/leds/blink/Kconfig b/drivers/leds/blink/Kconfig index 265b53476a80..6dedc58c47b3 100644 --- a/drivers/leds/blink/Kconfig +++ b/drivers/leds/blink/Kconfig @@ -9,6 +9,7 @@ if LEDS_BLINK config LEDS_BLINK_LGM tristate "LED support for Intel LGM SoC series" + depends on GPIOLIB depends on LEDS_CLASS depends on MFD_SYSCON depends on OF