From patchwork Thu Feb 1 14:47:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 19801 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2719:b0:106:209c:c626 with SMTP id hl25csp370945dyb; Thu, 1 Feb 2024 10:45:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IGb18d7qw1jK9F68T9fOG1P7GV1xBziTk8NjP8slMgov12Qn/r63KmPeQx86HRvJmZ0/U3G X-Received: by 2002:a05:6214:2626:b0:685:2897:4b53 with SMTP id gv6-20020a056214262600b0068528974b53mr6116109qvb.7.1706813158477; Thu, 01 Feb 2024 10:45:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706813158; cv=pass; d=google.com; s=arc-20160816; b=Ja3WkgnbXTWZXw6g4VCWEC459saP4rPEibkBdxePfprDfx0n0yFOIYUOotk5jqt2AA 249i9zD4Ph10qmOVJgKo8vdUQVZIhdqxPlDCrS7ps4BKR8xQZcIymYcoW/aMHSM2ij4N Eo4lM4b/BoUODLhsyvp0ehEUaz39FFR5GAJ278J2WN24+SPUgGb+QSu1j8ufhmt9edjR 196XTRUy+oeC/F6mPgEA+NaqYy+MXnKZPpEP2FabweiHYUDiI7zmonf0VPQ2h+cdHlrf AHM98FAzeLPxDDuIs1JQSQW5v8fRjZUrPd88xuVitu0VK+h1T+zRQgt7jNhVVITAMmg5 40Rw== 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=0d31q4uww/nQAwU8n4VSS6Ad39uDWvPlG9VC9crSRS4=; fh=L7y72fuVIhH8JQYs66PO9QyPC6PZa0SiTZP2H07asS4=; b=RE6WUA6YaF4eES4gAbyJzWhx9NOtUf5pe/a1X3rk6feiH5Rl0ZCqsaEhVenpkpdBOZ ySQKW8JPXLFDhZSurSxTmTcS2r6c1RHlM2hkNaxlTvcFWQT/hoTVFMgtBaYOE6v4C6Le 6R3L+lpxPz8+3TuN2vjY+SkaHNbSjSFb4lhYKeOwSum7QkuV4XYi3zZSe7Jb2Afb7/gJ j9CHfut/zzVdWEVX2zEeME3kuFUu30WB7NfwVpgxKGmbGdCGMBDI2Sk6a9L1i3KF6tsz RZKc9w8bBD8k/vKOHyPlKBTGDeHsAyt/nbbNfAB6W23Vba763N8IQEK+dp5TveEr/XFK UtuA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MCKAqLK0; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-48359-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48359-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=1; AJvYcCWL2smXLqKa3JY+m1UzXXd5LaJQwwZ0wZ9hmYnc07Kflys2BbVtKBnn3OJ4vs/twlOQ/y1Nc8Ls4viia4XFNElhniIbgQ== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g14-20020ad4514e000000b0068c7a7ed57csi69489qvq.540.2024.02.01.10.45.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 10:45:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48359-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MCKAqLK0; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-48359-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48359-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A9A591C28FCE for ; Thu, 1 Feb 2024 15:07:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D485762173; Thu, 1 Feb 2024 15:06:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="MCKAqLK0" Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) (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 8247E5F48C; Thu, 1 Feb 2024 15:06:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.55.52.115 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706800006; cv=none; b=SCH7tZZox1L2DUAp2yeveBSkdYRK2xhc6tY4njtT2MJZbd0+amd5ZtTywDZyyZzWuFIugbGlOSVpVB8QFSbvzr0ZHVgMOgHgkM0h//0hp2uzBwVWjtGI5j62MrUJcc3rM3wOloc5wPMSSWddzKrkhndZbPFl87AqInJMpOw/AvY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706800006; c=relaxed/simple; bh=gV3rpgXyCLB5Os65qh8tufSawczRz8oU+Pr448CXlGg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Z3uFctfhF7y2LAVnvbIWkgSTbSdlUczgHvPF4TpsCrPuNPITEJE/UY8dpuF3mnx8IhsZJOwynPoluMHgVPAWm6Zj4MtiGOKsPdIiYLRgEXHYn3XbU+RVTuRUPRFp4NbEue9Q4FscOh6DJc8V1ZZdbOGHfRSJ8OpZHgmBhGO1jvE= 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=MCKAqLK0; arc=none smtp.client-ip=192.55.52.115 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=1706800004; x=1738336004; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=gV3rpgXyCLB5Os65qh8tufSawczRz8oU+Pr448CXlGg=; b=MCKAqLK0RfwhPWd9iVsIcTGsaO9oEGvfEJA/Qv1Ox9Woim3mHqetGOWg pXcVwRX84lqROjYOyOFbLKwVu7eFvUYJT8D+24nV26eFn0hJZyuYSzZs1 pncEkN4OFqnnpgpKh0JkYMVI3Tqzyr4xR3Vay5lmY06C8GC2sztAMYBwi 4nHcOnwaGSXC0RtxRLWxuxUKIwpX/c+GVMYBXFFNRXSKrZ27GlXs1E/rQ r2ZGe655MHzYsCML/jKkCyBwwyoHroNtVlslUeQ3yZE7PDaQOP0rCJxFC PoG8pLaDsbBAkToJQ/EqElCUxn9jylUi843ocOcgfLvB2RV94SCFAf9a9 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10969"; a="403525475" X-IronPort-AV: E=Sophos;i="6.05,234,1701158400"; d="scan'208";a="403525475" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2024 07:06:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10969"; a="859168146" X-IronPort-AV: E=Sophos;i="6.05,234,1701158400"; d="scan'208";a="859168146" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga004.fm.intel.com with ESMTP; 01 Feb 2024 07:06:41 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id DD39EA23; Thu, 1 Feb 2024 16:49:52 +0200 (EET) From: Andy Shevchenko To: Andy Shevchenko , Daniel Thompson , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Lee Jones , Jingoo Han , Helge Deller Subject: [PATCH v2 0/4] backlight: hx8357: Clean up and make OF-independent Date: Thu, 1 Feb 2024 16:47:41 +0200 Message-ID: <20240201144951.294215-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: 1789723314743210864 X-GMAIL-MSGID: 1789723314743210864 A few ad-hoc cleanups and one patch to make driver OF-independent. Chagelog v2: - renamed init to init_fn and typedef accordingly (Daniel) - added tags (Daniel, Javier) Andy Shevchenko (4): backlight: hx8357: Make use of device properties backlight: hx8357: Move OF table closer to its consumer backlight: hx8357: Make use of dev_err_probe() backlight: hx8357: Utilise temporary variable for struct device drivers/video/backlight/hx8357.c | 57 +++++++++++++++----------------- 1 file changed, 27 insertions(+), 30 deletions(-)