Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2386552rdb; Mon, 12 Feb 2024 03:15:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUqozXKKrhYZ6jeqqqTnyxXZh8lao+BdZadlaiye9U3X94huZAZri0yejEKfy6QkGGYUrCTgv2TlMss8+HMj7a16qbppFdrR+RKLemBcg== X-Google-Smtp-Source: AGHT+IGWUwznN604BB2vea5E+lJS2PxFmSNKSESKKddDYcAuuqKIx3K0x7UORJarvW29Nfv64jog X-Received: by 2002:a17:906:4897:b0:a3c:d5d5:bc69 with SMTP id v23-20020a170906489700b00a3cd5d5bc69mr436654ejq.35.1707736540115; Mon, 12 Feb 2024 03:15:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707736540; cv=pass; d=google.com; s=arc-20160816; b=kxwP3rDVYDQeHF4xsahEP2vga0qFuqPDfhmdydAZYL+TZCHWxymw98+7916U2Yk2nW qS/Nk3xRvPFgoQY/iSKSjJg7b9UTfwyXZqkobdzUCoM4iT5eaX07185n3Bk6sXbUts8x 0O53OH6ATNSiajOXQlG+jYYuJEKu0O2XM7wUf/gtHX4yuKQv/JC+hrB1UJevsAWle4S/ pW3vnBk2bL9qzcF8rxHxIMC7USDHhpzhWGWLEAAaCNRsh1WRxlpdVzQMHc5MldL2HmFl DNhPD+ZnNaqmONMonIaute0Ccre7tdJwHVCFL351THVOgdXDk3cgay0J3/X6IitgiLwm dTqQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=zR/judp5gAhZFdRPfAte/DWeig26+O0X3CtWDeEZI3Q=; fh=05S+iFeFq2IY9xn8PMLZGtl4j80GaPnYV0Ho17cDFF8=; b=WcOVz0P0ndkAGEvVxQ0dp28FswgzN28/rAVyTvjdcJ+N8x6bFd3MX7a4pbsszk+cpI WLR3g3EOgCrVv8xGPatu7FqmwN6nq4/EvUhFMA9ClzVPbSOK8FLgGMhjjy8NQXWxFN+A w6ML3GXZHQ7WdEGFjnlE7e6k5AD4pc3/7ODIUyp3rkbqnFgm1DDdqpyoWPu/UvGjpoaQ PYAvo8vqbI2W0wWi6NJHmjuLDL5Ue/7LfNrQC6FeGlGGfa27HlgBx+BnasjGDEwSX3Fo 7FxxOBKfRpQJXPVhXSB9NuXQLwlj04ym8BqGk4tTBab7koMheOad9SnCFs44B2oGrwiU 2sSg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=StBktxvF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-61403-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61403-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCW0Tu8LY2Cbo2RLAOFIofo974dcM/E+psDvMMg3HfkRg5nQEYjIpP78aZFmz/oUR/81ucIv1iqeC/LiAjYzxZjrNwXgBUzI6kricL79RA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id h7-20020a170906260700b00a385293f22dsi88193ejc.805.2024.02.12.03.15.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 03:15:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61403-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=StBktxvF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-61403-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61403-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D00A51F21F3C for ; Mon, 12 Feb 2024 11:15:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 32AAB38F9A; Mon, 12 Feb 2024 11:15:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="StBktxvF" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5C0E617752; Mon, 12 Feb 2024 11:15:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707736532; cv=none; b=oFH9rdnlYuzdlIGgJ3v2gm2CHWItCYxp8EA3JjqBtEZPoGKmcrP0fMhSqZksf2ZSyTT2Am/siYUBSFGDQYpPaLF7N3jwLT5CTvbwoNqeuBbuzITIYOrMVYzXZh1DrACDt0JJY+HZSLIRKLW0NjUa8TlTcODRkJoDmSwjHysJ6BI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707736532; c=relaxed/simple; bh=uo1c3yTNaSxAlcCbr/1mBVju1rFds1wly6gCrD8iPyE=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=eCvOkkGnwVe0cCIkQhwsrprcfCJLrUSm7HVlM7Rd0hmVBo/3AA9G/Pro1fjUGmqGZCFpQ9Opm36pYfyFgmXItEwdx0VzxzT3ELOMF13Xx0+3X0afQOxOOKfbTQyWXnMAXazlMZg+cZXilniCcKM57XiEsjSHV3WencRX06MosMA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=StBktxvF; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24DEAC433F1; Mon, 12 Feb 2024 11:15:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707736531; bh=uo1c3yTNaSxAlcCbr/1mBVju1rFds1wly6gCrD8iPyE=; h=From:To:Cc:Subject:Date:From; b=StBktxvFHyn67q2hEjeae6pKPu/BiLUdPx1sor2wf4iT9AHW+f1dWDwwGG6ziYOBU OTINq0ur4d+Q3EkYFewMb51bq8WbVox5pM4AqvsELv7tvovwUCH7MFTZ/uy3E84tNL ufjNT6NKW3LxBvJm5hrWrH5Byh8uj7uuiMGcNjopYeul0Jfve6LiUy+xzJfq7uhXq1 I470IHTIHB+57v96b+E/l2AuezAsjKy8XJ7BCt0brn9usAvZ6tuRb0oPtDwNsSA+Tv HP6jK9k0rMBLocFRMbGf4EzfpdylmJrtcvFwOwJr/Raw+MgBNddr5z2jP/QfR3YbpP bQr0EntlBrK7g== From: Arnd Bergmann To: Pavel Machek , Lee Jones , Anjelique Melendez Cc: Arnd Bergmann , Jean Delvare , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] leds: qcom-lpg: add QCOM_PBS dependency Date: Mon, 12 Feb 2024 12:15:02 +0100 Message-Id: <20240212111526.829122-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann The lpg driver fails to link now when the pbs driver is in a loadable module: x86_64-linux-ld: drivers/leds/rgb/leds-qcom-lpg.o: in function `lpg_brightness_set': leds-qcom-lpg.c:(.text+0xe7f): undefined reference to `qcom_pbs_trigger_event' x86_64-linux-ld: drivers/leds/rgb/leds-qcom-lpg.o: in function `lpg_probe': leds-qcom-lpg.c:(.text+0x16a5): undefined reference to `get_pbs_client_device' Add a dependency to avoid the broken configuration. Apparently there is still a use for lpg with pbs disabled entirely for certain chips, so allow both but not LEDS_QCOM_LPG=y with QCOM_PBS=m. Fixes: 214110175679 ("leds: rgb: leds-qcom-lpg: Add support for PPG through single SDAM") Signed-off-by: Arnd Bergmann --- drivers/leds/rgb/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/leds/rgb/Kconfig b/drivers/leds/rgb/Kconfig index e66bd21b9852..eaeafdd5eaae 100644 --- a/drivers/leds/rgb/Kconfig +++ b/drivers/leds/rgb/Kconfig @@ -41,6 +41,7 @@ config LEDS_QCOM_LPG tristate "LED support for Qualcomm LPG" depends on OF depends on PWM + depends on QCOM_PBS || !QCOM_PBS depends on SPMI help This option enables support for the Light Pulse Generator found in a -- 2.39.2