From patchwork Thu Feb 1 15:14:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 19805 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp24801dyc; Thu, 1 Feb 2024 13:09:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IFFCniLGMrH9+tKKlzXFPBFYnwMPEVoh9vVVNekjaQTih0vn7epJ4k3hNrvXV7k23wNDYxY X-Received: by 2002:a17:902:d2cf:b0:1d8:f12d:4b31 with SMTP id n15-20020a170902d2cf00b001d8f12d4b31mr4458982plc.28.1706821792199; Thu, 01 Feb 2024 13:09:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706821792; cv=pass; d=google.com; s=arc-20160816; b=RIN7dyfPqqCl/VdBiI3VUw+ktExYV1MsW1U2W3xveJMAf3EQnZdnWPcKjhMfBNpFbq GgpdtctrVuS+KLKM158Ir2k0Ya6W8G2KKRJudWvpCwJRFfqdc4fIh6Wt5RuRPZ405f1E RP2abVXaoIzIHRLkCusUIfPBQSN1WgFPuiC5VwEvWbpNdqZaqD30wKRL5wsIk+qAN78b aGkMOmsOdIXGk01dzeKfk7ssy2pF1VhWnweGqxE7zHO4f7Ain1ASXjGoX1Ime4z8iK2+ 8wDR+d4jVO0+16OOStxFaCUQSbkRhpiBm9uLTqKPH12rTzv+xrqQqiPZHn1ij9wELDpj ACLw== 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=UKe2LMHjdOMkMyRWABzR+QpNNkonJgTSViXSNqqnmsc=; fh=/S9docC1dsqkZPS0ZxHITEE4y2pTH4IyBHfWqFmGy3M=; b=eNM1+MdBLkSIvBw4CDVfuEMFFAlRAiAcJroLN8wfgH9Aen7DzbPbpSRoaNZbRspqJ/ WDuSJbCGtAb7xJIpsB3/MWQkiO3lVDFEDKt4zocgSQ5/pNHmHxM3be4N02VZa+7YN4Mk TNjlgm4/C8DJVOsaxpT34FkyIEU8SyWJpSFCs0OBzdvX5wkNEzkJPzpc9cgB3kXbgq3C sVqHR6EfZqL68BtM5GcoEFZauTckoZrOEMA7wXjd5pR3ImJmeG1vQyJZNTHJArI8zG7f RM73lUX4L2ujawI8sA2+4NkMo5y00AKXX+Dk06j0CSA/A6WRxupvu/wdMPvsD+M5um9x LHGA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=F9C6h7Bo; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-48391-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48391-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=1; AJvYcCUfNgsGiHTVdnPcxMN5WMdfxs5opQMWyHoQBfkxsN85cONWQhYq0FuT7MHaFC+EWagNZRZ+yZCSdwiaGWtqwJmo3wlYZA== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id f10-20020a17090274ca00b001d4e20ce9a7si456708plt.33.2024.02.01.13.09.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 13:09:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48391-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=F9C6h7Bo; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-48391-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48391-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 398D1B247B2 for ; Thu, 1 Feb 2024 15:24:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F1B281292C4; Thu, 1 Feb 2024 15:21:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="F9C6h7Bo" Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) (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 9E0CF77A06; Thu, 1 Feb 2024 15:21:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.55.52.120 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706800912; cv=none; b=JhageEzXODrB9uHYCO/W5TmmjOCA/rB/2NS/BVaGBIaeZEGIggoIo5h/8Zu4/2zNu+WHMUFRjw5S+iWyv8VQJ6b0DFMTJXuYlxWxSZ3YWthSwvK4zK3a5L/ofkONftMMCqFvZj7+reGSuKTT5F2vYgkllBeP5kSV2r6jf9mMQww= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706800912; c=relaxed/simple; bh=wIQGdFqlY0xAMd+07bg96OAGO6sKPhtrx96e+mX0ZBE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ODmT/RUuqRowJ3tWVM8LzO+14JMf2QBpZ8fEfdSf1QOI0iVEvnD7KRE68yogJPgjtDdiHqaIK2th592+KSQx+bLReHwP0xivI2zXJOB1zrGX0I4LvkzUWPZa8OiC1mTOVHkLGCLN1bRyoCnQ0Q9c63PS/+2FFXb6l1RAtIffVvU= 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=F9C6h7Bo; arc=none smtp.client-ip=192.55.52.120 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=1706800910; x=1738336910; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=wIQGdFqlY0xAMd+07bg96OAGO6sKPhtrx96e+mX0ZBE=; b=F9C6h7Bo9cJLXeaTQzGJ60VBTRbHYEC4iBNhAZ3Vs/fSxCdMgEcoIJPr T+Sw4RhAcxyGvNdbp/sxhogOZMtHjbFafAnkHkmJjJ88kkIO+ILFOvyNk Hg4rWdXdTQ2evhdAMWkDv6s3pgb3lRY3CIW05PCDzowVlKBWSBKdnrj11 4e7zTdH/IozfWza4uXSfgCfx/fzkylKvUdOyc27FIX2IBrbYD/BlzWYrL Y8xmwaq4nt4n4+wu+L2XEyVGcNyU730dWnnQabALNyEGSyzv3BQy33WCO IRzxfuPIQw8Al+B/E/hNn2+HPO81LFex3ZnQCp0DgSzvcks9gyF5vjASa Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10969"; a="402762457" X-IronPort-AV: E=Sophos;i="6.05,234,1701158400"; d="scan'208";a="402762457" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2024 07:21:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10969"; a="788953699" X-IronPort-AV: E=Sophos;i="6.05,234,1701158400"; d="scan'208";a="788953699" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga002.jf.intel.com with ESMTP; 01 Feb 2024 07:21:41 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id B8E0CBA3; Thu, 1 Feb 2024 17:15:42 +0200 (EET) From: Andy Shevchenko To: Flavio Suligoi , Andy Shevchenko , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Lee Jones , Daniel Thompson , Jingoo Han , Helge Deller Subject: [PATCH v2 0/3] backlight: mp3309c: Allow to use on non-OF platforms Date: Thu, 1 Feb 2024 17:14:12 +0200 Message-ID: <20240201151537.367218-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: 1789732367438547441 Allow to use driver on non-OF platforms and other cleanups. 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(-)