From patchwork Mon Jul 24 12:17:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 124906 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp1765921vqg; Mon, 24 Jul 2023 05:30:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlGBkU2ejhQEnqjAtmJ0B/5l9p5L3IWVb5NBG5NOO5nAbNpS08gvYwojiLISRf0ibEUiYnIj X-Received: by 2002:a05:6870:f6a7:b0:1a2:a0d0:431a with SMTP id el39-20020a056870f6a700b001a2a0d0431amr11414150oab.29.1690201817211; Mon, 24 Jul 2023 05:30:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690201817; cv=none; d=google.com; s=arc-20160816; b=S1wmMfCFXtMPBWO5nkNqkbPplEdTQEiVZ9S2l8v7a/PpGSBF/H3Iz92R3oFckqVhqD W+4mFytIPNZLcPP0M8uZxq8+3OcviZFLUS0Ik6iblOAjxaqVnsSjdSaLspjrnemNDh1r nRo7uSh5Ghg8HVgjnWhM1Jg4w+hHinizKzNd6jmPxgDt9sPLMxveTk3645GB7QN88t4q UCjVP1JkV9E+zj4Q7jjlAFrN9/b9CvuVGhSmSlVjLvXLDV6G0SgYXZbUQvv0gPbVGJ0b A6GLwCa0eaBJCiF0/+ToLtp2sJdi7/6DA7f4orfEksO3MaSiyrUds03zjbWai+RFxLGF MS4w== 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=iRt3ZEwBg0FZPTIR86tM5FYMy0o4G7yIAEjJ2iz3wZM=; fh=CaoPur61BEGfwp/5fBCysBQqXaze5qgipUTmvg2GTv0=; b=QrlwRG9rWJ5Ay9xKDwXXpUTBSNOKNgGQEE8W2dUMXHfiooyaqvapvFWGuV38vl8Vo3 kNXAFjoeAzlAfAGbdPtFiUelsiomc+9ahu7p6BWOpYK8LclWLxEuxDdy5UB+2RldwCUK V9FfZmxnk+G6aXD+LO2IWWdP2NA0aw0+Z+qjqGBMa62yjKUHMgG2xOOsw8uyPiCrAhm7 siWax9pvK8U/GFBJjifZ1BWaMkHIUPxNtVN1/4n032atCF+FfDlE5HiEiONbH/kAZZMQ K8Kewne+K2xMbNmOHPSpILzOwrfMabmgjVbuQu9r9H9zXD20qKa2LKlB/YygPfmJA/Jz Op1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=k2iu8GNE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x4-20020a636304000000b00553859c59c1si9637136pgb.695.2023.07.24.05.30.03; Mon, 24 Jul 2023 05:30:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=k2iu8GNE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230482AbjGXMSj (ORCPT + 99 others); Mon, 24 Jul 2023 08:18:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230422AbjGXMSc (ORCPT ); Mon, 24 Jul 2023 08:18:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F3EF1BC2 for ; Mon, 24 Jul 2023 05:17:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AF86D61137 for ; Mon, 24 Jul 2023 12:17:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B6F9C433C9; Mon, 24 Jul 2023 12:17:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690201075; bh=6Wv579trwS5Cciu3iVXhCndFsSYSuaaRiNeiqPnZ2h4=; h=From:To:Cc:Subject:Date:From; b=k2iu8GNEY+ZXAxiDKfFIUekNEw7/Ij2qXiSCU9PxBQ+dd63AZop4EVo0iqP04CkXP Q9MM57FzoPiLkhFMdI1qy2ePfLLbvVY9m8va8a+lmERmOVOw2EZNn+12U3al4IgTPC cM6NfVD0pqnfj/NqZko1NIAOlO/SEbkn+vPxAHfXPX/qel5ArKxKAHldxyiaOsAb5R 5hcopEk0F7keqchPOsjOeOnV21Ie+R6yDmOl2Fn6qqYg3joNtNrY/bOo+JgI1IPRyB Plv6HHp16HgWwJ6uP34btPY01z5mmYd5Q79vZp9EokbP5vtdkd4CN+bSMznfwtju7+ FXeC8sfVsm2Qw== From: Arnd Bergmann To: Neil Armstrong , David Airlie , Daniel Vetter , Sam Ravnborg , Paul Cercueil Cc: Arnd Bergmann , Linus Walleij , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/panel: ld9040: add backlight Kconfig dependency Date: Mon, 24 Jul 2023 14:17:05 +0200 Message-Id: <20230724121736.1293270-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772305060988240280 X-GMAIL-MSGID: 1772305060988240280 From: Arnd Bergmann The driver now uses the backlight interface, which breaks when that is disabled: ld.lld: error: undefined symbol: devm_backlight_device_register Enforce the necessary Kconfig dependency to avoid this. Fixes: c2268daa65fb4 ("drm/panel: ld9040: Register a backlight device") Signed-off-by: Arnd Bergmann Reviewed-by: Sam Ravnborg --- drivers/gpu/drm/panel/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index e8c9f4613a4b4..b097b2507ac5b 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -300,6 +300,7 @@ config DRM_PANEL_LEADTEK_LTK500HD1829 config DRM_PANEL_SAMSUNG_LD9040 tristate "Samsung LD9040 RGB/SPI panel" depends on OF && SPI + depends on BACKLIGHT_CLASS_DEVICE select VIDEOMODE_HELPERS config DRM_PANEL_LG_LB035Q02