Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1284423pxb; Fri, 21 Jan 2022 14:20:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJxmtrB0fW00blWtXFBndT9w8J9bwXOVQZhVYkXcSI2AECaHLxK19Ye20UKwWc4mhv9YQP9a X-Received: by 2002:a63:4c09:: with SMTP id z9mr2185492pga.471.1642803606106; Fri, 21 Jan 2022 14:20:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642803606; cv=none; d=google.com; s=arc-20160816; b=tsoVcpRHrWDz1F67QYh9eGkdDu6nQ3eCz+D+ecli0hLgkDlKbDRZpdBxd0g+UGu98n OQGPl0UjREzqWwN3VHglJOvu3XJyr6v2lhNLbwAbsB0YeuJ2ZdrFBBa2VGmUMEJEd7nY ngRACYkecEEl7/e1GYdqVP578xLx1iCCy3slYnW+zi62gonCx8MVG0TlEWspN9US20XT H7yVC2V1w6941M7d9u2O9W1PkZlaMEQUE/OmzKUV6vqmSo2XwOgrA9HREiWKGSQnMZ7v D8eO+et4IkIgWx48Dtwb3Gbq5M4BKZwESixXNc7G1I+/rfq6EFYzWq2QHnymeZ1yJHyq td/A== 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=sPp6jQ7nxqCk/VeS2lN2v3S+s7yyyNYqjLUWIMVkc/5nJW6r/sfCcX+SG8ln3FR8aQ vL2G5v/IdgX7cQUYlMc8fxLztFFA/zxebEfK6S6IhX4SiTEILID/10ahCD1JGMq3O5z3 VhP217Ww0gakSLQwPfSfwSp/hBRjcmh2rzoHLWDJwcoCdlTeO+pyv5yrZDMT3WAElXV0 WtXeyBDLl/HGZc/SZsEKtIAVQmPYHjtH9X91K1cOzN2J7B0dXtfysL9U4QjQTfOrLo2Q 06oZtyKC+it/ek/yz8Z2aoX+GgaBdkv+gfE2kC+Ju2AieJZ98DFKu2lkLYB9tuQXi3O0 NyRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=UpBA1veD; 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 b32si7625877pgm.146.2022.01.21.14.19.52; Fri, 21 Jan 2022 14:20:06 -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=UpBA1veD; 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 S1376565AbiATPWa (ORCPT + 99 others); Thu, 20 Jan 2022 10:22:30 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:35438 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376454AbiATPW3 (ORCPT ); Thu, 20 Jan 2022 10:22:29 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: detlev) with ESMTPSA id 2F0091F4533C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1642692148; bh=80BI0zXGQTgN05p6AlFLM+LNKFXJZZRY/BLdFYtbkxU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UpBA1veDJR3S5J4pN/mWlU/nnCjmtqM/foKJhUEGedmrunYe3kf7znvovLxWhaza2 pJU95qJVx4kGn1pXs21yGTwZQSOf5izwCrxb2ctm20TWoQw69CAv7pvUASr3eH6kEc 5GXu7vLGC5jG4W4OL+F3ILHjDeUP9BLbwIEdUoQjYW9ufmyFZ2mLUCPRn3rB6SHeyg eyGS+PrOSgTM/Qfo6g+xc7CLsrcg0BxVMUXPBLGivZKE4uYmaBjoNEkMyhayFjNbW1 J3gV4hiUQ3w29j3OjSwIpKKckhttH6ZdSKhMrz5QQ04MWKTFrY3N1R5IqgvmlL/Jbv tmJRBLrmGWsXg== From: Detlev Casanova To: linux-kernel@vger.kernel.org Cc: Dave Stevenson , Liam Girdwood , Mark Brown Subject: [PATCH 1/9] regulator: rpi-panel: Register with a unique backlight name Date: Thu, 20 Jan 2022 10:21:42 -0500 Message-Id: <20220120152150.1952568-2-detlev.casanova@collabora.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220120152150.1952568-1-detlev.casanova@collabora.com> References: <20220120152150.1952568-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