From patchwork Thu Jun 2 14:18:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Manna, Animesh" X-Patchwork-Id: 12867918 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 95125C433EF for ; Thu, 2 Jun 2022 14:20:43 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0A3D8112D7D; Thu, 2 Jun 2022 14:20:43 +0000 (UTC) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by gabe.freedesktop.org (Postfix) with ESMTPS id 764BE112D77 for ; Thu, 2 Jun 2022 14:20:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654179641; x=1685715641; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=8wISFmGdZ8hD31kH5sLhZgRxV8fzd5Xm0Mui0I7fiB4=; b=Cl2ha9KpqvOZ64IKZrJYXhCeTvz31WbB6DhGqs8lMWWmA8tfVam2sFZH QD7Y3kKafWIi1dYqwDTA5D2zg7y5WDck1nBre1w7Q2Ffe9HKrwUaY40cR OebJGJkOPD0i2jccuFCX3xmWkteI8GANfyJAhYCncADxdu3GGiSWWCx7M 3FU5pL1s2ld7ttf6CltAQR2n4ZDBdFFRaydrKZ8Ywbi4linI7P2UlqcBu EiVSVeP52/iOgTQc0pG4lhYX7F5h1Lp7oohCVlryyRIUqBh6WXTJ470u/ FMBquz0Vewyqm+XPVnfzCN4nEt/li6Y+gNGUPC66GOTe++M+Fz9ydvI3S w==; X-IronPort-AV: E=McAfee;i="6400,9594,10365"; a="339007313" X-IronPort-AV: E=Sophos;i="5.91,271,1647327600"; d="scan'208";a="339007313" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jun 2022 07:20:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,271,1647327600"; d="scan'208";a="905007706" Received: from srr4-3-linux-101-amanna.iind.intel.com ([10.223.74.76]) by fmsmga005.fm.intel.com with ESMTP; 02 Jun 2022 07:20:38 -0700 From: Animesh Manna To: intel-gfx@lists.freedesktop.org Date: Thu, 2 Jun 2022 19:48:49 +0530 Message-Id: <20220602141850.21301-5-animesh.manna@intel.com> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20220602141850.21301-1-animesh.manna@intel.com> References: <20220602141850.21301-1-animesh.manna@intel.com> MIME-Version: 1.0 Subject: [Intel-gfx] [RFC PATCH 4/5] drm/i915/display: prepend connector name to the backlight X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jani.nikula@intel.com Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" From: Arun R Murthy With the enablement of dual eDP, there will have to exist two entries of backlight sysfs file. In order to avoid sysfs file name duplication, the file names are prepended with the connector name. Signed-off-by: Arun R Murthy --- drivers/gpu/drm/i915/display/intel_backlight.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_backlight.c b/drivers/gpu/drm/i915/display/intel_backlight.c index 68513206a66a..211fa0f07239 100644 --- a/drivers/gpu/drm/i915/display/intel_backlight.c +++ b/drivers/gpu/drm/i915/display/intel_backlight.c @@ -967,6 +967,8 @@ int intel_backlight_device_register(struct intel_connector *connector) props.power = FB_BLANK_POWERDOWN; name = kstrdup("intel_backlight", GFP_KERNEL); + name = kasprintf(GFP_KERNEL, "%s.intel_backlight", + connector->base.name); if (!name) return -ENOMEM;