Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3023884pxj; Mon, 17 May 2021 15:51:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtU6v4JE3uXU+BMYnM34316rVxs8YbY1yk3+UG8bRK88UgyUNLQ+r035TSEKmBUqu2Ab82 X-Received: by 2002:a92:3002:: with SMTP id x2mr1787729ile.116.1621291874456; Mon, 17 May 2021 15:51:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621291874; cv=none; d=google.com; s=arc-20160816; b=dUJmOydvqyPd4URl8gO4PtryfYf42wWDNd1YSpIMRY45bTqUQgpJwlxMMBO5jLWJLp CJjWsAF1wQ+yXUTybva60Hl0yvrw7aFEBEZF3xRVphMMwzJzXC1WGeRd14oqy9UA+cBW 66nerZrZjca3IvD05uM73ta+JzZbtIYoACtv30NHY3c9r/QZQjt+cKn9n2+zmhcWj7cg 50QQHtIk9Al/121sn7FEWQsBv/lLNnpZr/Hr1uifyHNwhCkHhfeFaQMZF1XBNtDuCaMZ nJM51wNOYC72daRqL5Or4xfiwp9zGo/7QVb6YwqMXXdCQeV1hI6mb+p7RdNO/GmeAt8+ uM2w== 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=d16/89RjDo+K7/7EdxmgyyF0T8icCfuMV+8ZCIpUnk+MGnRznpwi1Qpj72eXV36EYO qS0KWZeDk6sAd/Nu+3oppsMhyRcox8C66hueVRJhBS3JEtYsgNuPuPu7znKje2WExo3C QhJG3Zt4nDmUT+TVscVo0ZVTM1Da/RUUuD1mZ+pcrgy1gKeZZ7Le4kVGx9Qm6bvXjjYR cRYMHWfhkafuKTZdz6S5R1dfDvsNPP4h8sqiDpx15oqIxZIGj5X9b21JZXNRpK1YATJU zn9qfzqDgvJYObqjYMQLa74RUrkJuHZdVpwCgqenEUa/qCv/8I26lb2jfx2fGae3PNym kNsQ== 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 linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 w3si20534482iov.75.2021.05.17.15.51.01; Mon, 17 May 2021 15:51:14 -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=@linuxfoundation.org header.s=korg header.b=MQZIXgqu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238921AbhEQORD (ORCPT + 99 others); Mon, 17 May 2021 10:17:03 -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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(+) 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 -- 2.30.2