Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1405890pxb; Fri, 21 Jan 2022 17:54:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJynFHoFZ23h80pb2QQSAQ3mZPEH+8R8SdaWE00QC7ki+078CDGOjRCZzh5MjPlG7wPH87ra X-Received: by 2002:aa7:904e:0:b0:4bc:bdd5:f3d with SMTP id n14-20020aa7904e000000b004bcbdd50f3dmr5976255pfo.9.1642816478113; Fri, 21 Jan 2022 17:54:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642816478; cv=none; d=google.com; s=arc-20160816; b=ZCoXghrKFEbb5kftwBq9wY5qVouBi/pgUAxxi1hC4N0chEqUNFiodqH8EzjUQzdD7L /gqwFZO4+r2cEA+QS3xkQ+8pWRj2ncN/SppPByRhCKbNQOGJvNR+E0kQQpcgTFS8T1bl vI8eiLx+Q8aXNPI2P3cGEVcO8Lobilh2tywWV2ylYMhtf3UJmLUDEaH43v8EGWz6kDif EzSLnJ/gHZRoPNkRNQT/2GQCtvzX26xBG3mVrD14KGGOuxI020P0svT2GLukrRA8w3Bp +e00p1Ac5syMD8B7WM2+wjudZS0Y+CvtD689dqT6taoKFqri3opaEcK4otr0MfabN6Ps 7Ffw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dYbhVaApHZh1mB874rxCYh2pb2XJuF8UKYRyg47YxA8=; b=crc4PP1MSc5V7GMCnDVU1Uc86d2xkCaooVHDlnTuvxVXi47I8W0i8R1LNneyVp2L7m Ww2Esf5TmeBXkcYN0BV5XYv2S3z1xJn6ESrSYc7gZFQVpyVaWeO3yjbSrSEzHDUwGA4S 8OII10brfM7iCquEXbRd0C6oMqD0oi+aW6rfrArwpMLWDmfIrVpXTtJvah48j8jApDzY QzABh8DfROf5ODGRMXwnyX8TOiSFNQgJ2oOKFyw14oE40wht18/AG3Io18WHaMD5BCpi WexwgHJ9u4OlNbis1dQIBabyd0qL01SEBN1OX9iHBSY09sDL4E71bKCQ0hbQGztYGkcM 6xgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=hdCia6B4; 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=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e19si8094025pgv.33.2022.01.21.17.54.26; Fri, 21 Jan 2022 17:54:38 -0800 (PST) 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=@collabora.com header.s=mail header.b=hdCia6B4; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381526AbiAUPVj (ORCPT + 99 others); Fri, 21 Jan 2022 10:21:39 -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