From patchwork Thu Feb 8 18:24:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 20136 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp497278dyd; Thu, 8 Feb 2024 14:46:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IGqQU9gdLs76+CWBz+SII4AqHXesrOFQUOkOS9AjzBT9zM5xZyNTKbSmIRZ65uH7h72szHm X-Received: by 2002:a05:6402:448e:b0:561:fc2:bec0 with SMTP id er14-20020a056402448e00b005610fc2bec0mr68825edb.4.1707432418226; Thu, 08 Feb 2024 14:46:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707432418; cv=pass; d=google.com; s=arc-20160816; b=xt46nIpoNuNP1uIp0GSEziLljb5wRnxW8oYCICSOW6MpZ6v5FonJ9rHGPYsAhvtMVb a0GK4rmbqDJZecz4wBjDC7onKj9dfP0GpBieVuhxPx2zwzVdHh1t2cRQqmeRu/7TPSUP rulB11c1Zm+43z9JizByrqdcBis5/rLRb382wVWwDzV5RkUpMlRLI8MPsxUtaXXftTCN 4tavhWkctIart/oaHwY1pxLVAfAvuGpuLFjdO6BR6BbnorPTWaV+BcmylJXB9F9yYDJc +U0wg9EydMm40+7MbZbRlQq6aVEtxa9ksO+XElyOkqvtNG67ZgEPJB8Ujwz6W5nkIsMz O/yw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=m/4dadv0hqqyhnLS+XV38lWMjjxVTWRBCzNHdzUmNUI=; fh=5eZ22jnDnhfSYLASHE7nyDHkGVbKh9n2R9UEuJZncZk=; b=DEvGrEr6VMrej0UsZ02ZTJS7X1LuPn+WJTSk9BJnpD6m9ZUa/orD2GriMUyNy8W9rG EkzddNZe8ECQcycVbxZE1B8XYhCTcZ3Wmg2rx6mDVlOczAuI49tEUoqDJvZoP9GDc2se PCEqq0n7t/nPTtnkUEB9G+KTXvy3w3bIeaOhXXy/hoFeDYRtlW2owRHTyrMjdW4Hv9jO 2ASfH/Lt3gb4BpMi99Uby2DWkvIQYCD+D8pqm9MXXCDTxXiwh3uO8UFwq8aZ/wcUqM9h FIVchBs9Q4JNW2eyFebbXNHCOpivI87Wue+fUxg19n1gltXSnCeplJKS16SM1w/u9Leo +4Cg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SfRWDIZt; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-58541-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58541-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCUTF876kTqQGnJmm4SDtr0zSOp8YFrzH0+/U2n7SKc8whm0ym445bYk1zrnDRkmrIm/I3GtXOjPNv5LXUcrgSe/uydMJA== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id y3-20020a50bb03000000b005601033ea51si168031ede.426.2024.02.08.14.46.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 14:46:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58541-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SfRWDIZt; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-58541-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58541-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 562321F2A9BE for ; Thu, 8 Feb 2024 18:42:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C6487250ED; Thu, 8 Feb 2024 18:42:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="SfRWDIZt" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A0A5D1DA59; Thu, 8 Feb 2024 18:42:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707417753; cv=none; b=axtYlN0eqM7Tfh2XDSl7LpSBQzn3kSUIj5Zm+P0HJk0a7jfYgU+2CWFN0kWvtkNHqPGekO/0DdXhR7FBSquT0e6Gu87B+wZhPjqiwS1oFmFqOT46ua8T5mhY7ti+Mn7RraYfuQtEKlcS5e8tPRAe4c+iPeqJnkBECkoy8nS8x0Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707417753; c=relaxed/simple; bh=PVZQea4vz3DuEQPtaVt+MCdeOQtQVI09e+jW/aO8CU8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UUZMXqZ71HMevEqHnB6bRylGT59eonnPONZyRcAWd+bYgXFJmQBHqoUaBwBqZu7DiySkNYKQdkD1QZQHLmcpAPDMsS/1KkK6uSQipWhKM3n3f2mfwtKiiA/TyfacxogjZPME1Os9Lbp9v4O3nKOn1HbJDVYKGK9Go6Hnnn+bVs0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=SfRWDIZt; arc=none smtp.client-ip=192.198.163.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1707417752; x=1738953752; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=PVZQea4vz3DuEQPtaVt+MCdeOQtQVI09e+jW/aO8CU8=; b=SfRWDIZtH7yvyfh+63KULANOs/MDkG/mvb6p4ufhvWRRQ9pNSmUFmg+9 ImBzMAflEj/+kKemBBQw8RZx7TsLNIob3RDb1kpY/8BqCNRP6s5OLAb4J sQLPW9DAteQKIdnulvS61daM0cT7Q5Yg0E6x/3E3ee6HaNF5fyQ7NT9Cv CHQWsk/gISfra1ldj51uJg7wRTR5lEMMYx3lpbmhnmGu6LMVaWkmcMcS+ whU+KFFb3lTvAg1+fqlPSOIS4j1NbnVJ2kAqjI/wO87KRWaxl5SsDECZf F3ZFRfH8V+RsQm48t7pnu1YCGv7h+I+8u1fpzELDR4nrvKHue6NOfaN8h Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10978"; a="1184540" X-IronPort-AV: E=Sophos;i="6.05,254,1701158400"; d="scan'208";a="1184540" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2024 10:42:31 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10978"; a="934213673" X-IronPort-AV: E=Sophos;i="6.05,254,1701158400"; d="scan'208";a="934213673" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 08 Feb 2024 10:42:29 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id BE757147B; Thu, 8 Feb 2024 20:26:09 +0200 (EET) From: Andy Shevchenko To: Daniel Thompson , Flavio Suligoi , Andy Shevchenko , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Lee Jones , Jingoo Han , Helge Deller Subject: [PATCH v3 0/3] backlight: mp3309c: Allow to use on non-OF platforms Date: Thu, 8 Feb 2024 20:24:45 +0200 Message-ID: <20240208182608.2224191-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1.gbec44491f096 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789732367438547441 X-GMAIL-MSGID: 1790372654973118323 Allow to use driver on non-OF platforms and other cleanups. Changelog v3: - rebased on top of the last changes against this driver (Lee) - added tags to patch 2 (Daniel, Flavio) Changelog v2: - rename pm3309c_parse_dt_node() --> mp3309c_parse_fwnode() (Daniel) - add tags (Daniel, Flavio) - new patch 2 Andy Shevchenko (3): backlight: mp3309c: Make use of device properties backlight: mp3309c: use dev_err_probe() instead of dev_err() backlight: mp3309c: Utilise temporary variable for struct device drivers/video/backlight/mp3309c.c | 88 ++++++++++++------------------- 1 file changed, 35 insertions(+), 53 deletions(-)