Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3983261pxb; Tue, 25 Jan 2022 00:38:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJxugal+IpY1jI90B4L5wOioJSLB0WuiZvkveT6l68Wf0YsP17TT/axClAWPe1hlyMErEM2Y X-Received: by 2002:a05:6402:d0e:: with SMTP id eb14mr18608999edb.81.1643099930323; Tue, 25 Jan 2022 00:38:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643099930; cv=none; d=google.com; s=arc-20160816; b=fN3mqzAYZspgdytshxHcWxuwrgoEgBf3Er5nX1tqiqsy0g2Gn8WIxLduEmSg3pvJW5 HIKln59frIHnzdqanInEEcO2ZyGYCaMgg0n5wWuhfENXA60IdpC5mdRnHVORm0eRlK6k KBmzwgP/k8V2dPgGKMNaME8vAbU49HQOastfRSg3fYSoOPt5rA9sdN/DbmhBy6wXLglQ VldP4h98d2QmLkp8uYO5FLKeJLLCbBF4+lmIAkWjVHLDli8/fgyaMoVyc2GjWz0BBo6t 91pegLuMvfi9Y20WqSK0dmlQrDYp3J9PhQX8I3nXDyoI4Z7xGhRNptCkBsaSr/+MOble GlpQ== 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=I2O6J7RuOujjFbtRknfT+S2m+bkjuwNwW8iTcWxsSYg=; b=J6PR1FEkhliGm7UqKIEWkRzKowjhiVGG9VnFCXV9As1XM4aiN8lEg5QqWD1mNJQXwg r3EvsAqLMn99+XAQDSfybSJ1sJQ8fA7vj4eZXq9zM8aV6/DJ08+iY3W8IDwlfD224ET3 BiesGK1r4fxwg0ROjz9avb8tlSH/m3z6wfL6W4i00Zj2+2iSXlSykO/4rJ6KKziAYSQa VX0eDoJ8QI7XW6BCffeY0VHHUM/MQUmWmlzv5scVBg9sZxPu/OW68dm7xKm+tJgqRZ/j YowTG3GOQzgPzvQWUP467Qe6YYlNrez08ZxTPyZe6zkhWpBtbwiK4EzTfDOJ5bEGnE0p 4rRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=DdwqpN7n; 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 g12si9852190edz.293.2022.01.25.00.38.25; Tue, 25 Jan 2022 00:38:50 -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=DdwqpN7n; 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 S1315551AbiAYCxs (ORCPT + 99 others); Mon, 24 Jan 2022 21:53:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2374225AbiAYAQc (ORCPT ); Mon, 24 Jan 2022 19:16:32 -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 8F6CBC038AF0 for ; Mon, 24 Jan 2022 14:01:41 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: detlev) with ESMTPSA id 146A11F438ED DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1643061699; bh=GeHZOsyvGGJJ4aGx3Jf1/eW+jsfWROA8xn3TnY8RKX0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DdwqpN7nWmbIhZNt7LG8gdB3dXWkqNEve/hW6ievQwGCSFHaHJGemTR9BV68DA4Nk OQ9P+Xsv1wLqKt+bcL/PL+B3NX5paiQVv84W0/JRMQYhGFt/CTZmgxr9NEzjMNfDq7 uh4II7JZRHw0fNv+7aACJPeV8wSyIwFd6wtDdS6Ibr5XBnRUc1KOTqU3NKx6CN1YmB umJaea3GGGKbCyt+EOW3w+H+lG+Tso+3p/gqySmi7ID6DU0pdTJCrzemrhGfewstUa 0WpIoEVONDcUuC1I0iLHPYsv9zmZnQgxwSgtr6qQ4GYdlF2VG522bEyPiZ6kzORny4 yfBeVR+p5ZMLg== From: Detlev Casanova To: linux-kernel@vger.kernel.org Cc: Dave Stevenson , Liam Girdwood , Mark Brown , Detlev Casanova Subject: [PATCH v3 1/9] regulator: rpi-panel: Register with a unique backlight name Date: Mon, 24 Jan 2022 17:01:21 -0500 Message-Id: <20220124220129.158891-2-detlev.casanova@collabora.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124220129.158891-1-detlev.casanova@collabora.com> References: <20220124220129.158891-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 Signed-off-by: Detlev Casanova --- 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