From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A1170C4332F for ; Fri, 21 Jan 2022 15:21:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351305AbiAUPVk (ORCPT ); Fri, 21 Jan 2022 10:21:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381534AbiAUPV3 (ORCPT ); Fri, 21 Jan 2022 10:21:29 -0500 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7A43C061401 for ; Fri, 21 Jan 2022 07:21:28 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: detlev) with ESMTPSA id 3B6371F4620F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1642778487; bh=80BI0zXGQTgN05p6AlFLM+LNKFXJZZRY/BLdFYtbkxU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hdCia6B48T1WyJRbqV8VBwL8L2R4Mj6Sw4lTyCXLVSo94MEaVq9cYJvp4oeh9pqra 1zekUD/QHR8DuhwX2Zg2l61JWosNxZt0mRn1E3geN5WYG8seWBlIVemUy4FaawJ+k+ nZdFTEJSgHILOWJDPNnrgSiscwifKIVCTZYSttAJ2Owk1PtttB8ss7FXbKoS1MIVtA YOM8JVI6xmKd/MJLm1dCsXV40UvfKUDbgPqrF1emPZZe7TebDxpJDifjWw2rjLO1B+ bikzjN31KuCgwBSCrgCmT+k/dCERzwt4S5D4XeouWFd95VhoD96g2R1JIVTsD57RK9 l2joZQtTCl12A== From: Detlev Casanova To: linux-kernel@vger.kernel.org Cc: Dave Stevenson , Liam Girdwood , Mark Brown Subject: [PATCH v2 1/9] regulator: rpi-panel: Register with a unique backlight name Date: Fri, 21 Jan 2022 10:20:48 -0500 Message-Id: <20220121152056.2044551-2-detlev.casanova@collabora.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220121152056.2044551-1-detlev.casanova@collabora.com> References: <20220121152056.2044551-1-detlev.casanova@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dave Stevenson There's no reason why 2 Raspberry Pi DSI displays can't be attached to a Pi Compute Module, so the backlight names need to be unique. Use the parent dev_name. It's not as readable, but is unique. Signed-off-by: Dave Stevenson --- drivers/regulator/rpi-panel-attiny-regulator.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/regulator/rpi-panel-attiny-regulator.c b/drivers/regulator/rpi-panel-attiny-regulator.c index ee46bfbf5eee..370b9ae363dd 100644 --- a/drivers/regulator/rpi-panel-attiny-regulator.c +++ b/drivers/regulator/rpi-panel-attiny-regulator.c @@ -181,8 +181,7 @@ static int attiny_i2c_probe(struct i2c_client *i2c, props.type = BACKLIGHT_RAW; props.max_brightness = 0xff; - bl = devm_backlight_device_register(&i2c->dev, - "7inch-touchscreen-panel-bl", + bl = devm_backlight_device_register(&i2c->dev, dev_name(&i2c->dev), &i2c->dev, regmap, &attiny_bl, &props); if (IS_ERR(bl)) -- 2.34.1