Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp642021lqt; Thu, 6 Jun 2024 13:57:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUvbJ9Gg3croQn0efj/SFFKtOn4qCRWkYcIHoMwU2GGohzyDC0/SjIBvi9LkHiEnAZpNLc8zcur/x0YU82Orc/DY9bkMjQfz5M8ertpsA== X-Google-Smtp-Source: AGHT+IHkDXejAqLX6CE8At/fjnZePULElX9Wt1ZA9shdB/AMJBT8TA5nWA71BfCob/eE1AlrCq6k X-Received: by 2002:a05:620a:5e0b:b0:795:393f:cd46 with SMTP id af79cd13be357-7953c314790mr52023885a.23.1717707452294; Thu, 06 Jun 2024 13:57:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717707452; cv=pass; d=google.com; s=arc-20160816; b=KwzuwVwS1vFML3yHsDW/ZdGDTGS+Eaua7pyRDiMsOK/8Lbje0Zg+xUb8Piadk7UU1A gkepD5ojeMrowZu53Y8qspdRFANHiuy1BgtOW2liRvEk4ACHeG4IUW3cdEw3ZY33HMun c3URgw1v8ZxCsaxc9afqkn99YNQXBHdcXgr92gRZv/F3OeWEz4EQEGXB9BTAvRhgM4KM eEieQXd8nel+2Ru+keKyy1WMc8oPC76WecL6gs/QSVyuAwLbtKZuY31t2IAJ6N0/AtA0 GZzQD0RWKg1Tx5Z/DcD/D+L4Nyw91nqw4YI/S+naXEjznFMDzWNZXazbr97qCMBSkxwi 7oow== 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=pJT3bXRr3kMmlqNO77OpTT74k3wvc+0+z/FF5gQCQw0=; fh=OAx35mhqT7w49CH4c7T09ig2LJq7E8PsKb2Beisg6Ag=; b=AAvFCFQZzX35N5gYV+Ur9S/4r6wQsRMLfPxsHRMJcpK5m2zP5tC30cvF0PnStoltWg 9QKNBBv4lnJTe6zRyEse7dCLVkhVSjvg81zk6PCkzc6enOo4A0vXNk1ZvoMNmOnDmzTu 6XICqWAQtUC0sUXiYWue5kdWRz/h9VKo8XvWTCsuaJqTE5juQ2g79oy8QhtD02SL3n3E +3i+wpQoSYLK2wjVyRMyApt4r2ej5O8IYZcR2ESuu1oIxSE7EfjAoTcE2hVKdElDX1Lk /VTEIOAJ2R0s2MamQstb7CjOGXhn6ETAsMlvMtwmNxBU2TIc1PXbjQh3nGg8kA7ThlaM NxWQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=b9sAOFxa; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-205014-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205014-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-795333a8272si213713685a.780.2024.06.06.13.57.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 13:57:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205014-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=b9sAOFxa; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-205014-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205014-linux.lists.archive=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 055FB1C22A12 for ; Thu, 6 Jun 2024 20:57:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9D8C0196C85; Thu, 6 Jun 2024 20:57:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="b9sAOFxa" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (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 1D49D433C7; Thu, 6 Jun 2024 20:57:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717707443; cv=none; b=kVuaFUWkoT4e3tskWLyk+eabIP5tdd7LByByjNu+y+Ip9sdvpZmdfy5qZYRYDlLv1WZh86CJ663ajuSoPjrsgi3dZtwN7NPbGymoLE1wwusBVL49h6Qv2dHKNt+sxkuz3W4a8Mumehch3uO7uZqzQ69SxcE36sQ2DKw2upFqPBc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717707443; c=relaxed/simple; bh=uPfvi/t2adMr7i5mPoSHlWgo4zQ4sxgP+GI6tGZ/ZYE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ldnZlFKdOyRJcAMMoweTWD/JK3IfCTzlBTiCK3xL/MOnxnw3fBOxvITNJqbTEcAPCjaWTxY24yZKtgENiWE3nxE3ZN74COVlGnfu3ABIDVTpvvoFqgErS/Nz3y7gew6BFgMZ1EnH2jEyCsvcmsaWxuv+y7VZT0TK8gyI7Mid+eg= 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=b9sAOFxa; arc=none smtp.client-ip=192.198.163.11 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=1717707442; x=1749243442; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=uPfvi/t2adMr7i5mPoSHlWgo4zQ4sxgP+GI6tGZ/ZYE=; b=b9sAOFxa91tnoA+FipQDxusyiPTwg9vR6HQtJ3ytvme9yBxXP5AK8YRs epfnuIuwQAYnT0bmJuHkG9xLQIOQwqzDGgrT8RHstoSF1s+h/snL6GX8O +UY5/rRyzMIh5gZiqjymeJN/8Fhwz7ZXvT2F/287N+nQT24aKvCFQTDXs gwdA6hIRZ0zGfTIoRNinDV5pNRvm2Bai6cR/cJWBmXma19QY5mwUEO5iK 6Cba9vvmSE41W5SkXtkX3mvq9yu0QFv78rgpy3T/o8qO9RcSPwthbog97 cLitNtYahypZEXEaLDECpGnyYKMOyNLxA+l6nxLBoenHjWfNhmSjLVDuO A==; X-CSE-ConnectionGUID: R24sBf5hSGiTQk8+n7jmYA== X-CSE-MsgGUID: zsuzj//oQXiOZ0nYgj7b+w== X-IronPort-AV: E=McAfee;i="6600,9927,11095"; a="25037100" X-IronPort-AV: E=Sophos;i="6.08,219,1712646000"; d="scan'208";a="25037100" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2024 13:57:21 -0700 X-CSE-ConnectionGUID: Th1RMlleQwmCVLBqoGr/mg== X-CSE-MsgGUID: j0ZKRAj/SDq0K1plkw3Emg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,219,1712646000"; d="scan'208";a="61304492" Received: from black.fi.intel.com ([10.237.72.28]) by fmviesa002.fm.intel.com with ESMTP; 06 Jun 2024 13:57:19 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 5DA8C1C9; Thu, 06 Jun 2024 23:57:18 +0300 (EEST) From: Andy Shevchenko To: Mika Westerberg , Andy Shevchenko , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Rafael J. Wysocki" , Len Brown , Andy Shevchenko , Hans de Goede Subject: [PATCH v4 0/3] ACPI: PMIC: a small refactoring Date: Thu, 6 Jun 2024 23:54:13 +0300 Message-ID: <20240606205712.3187675-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1336.g36b5255a03ac Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Use sizeof(), dev_err()/dev_warn(), and regmap bulk read where it makes sense. In v4: - dropped controversial changes (Hans) Andy Shevchenko (3): ACPI: PMIC: Use sizeof() instead of hard coded value ACPI: PMIC: Convert pr_*() to dev_*() printing macros ACPI: PMIC: Replace open coded be16_to_cpu() drivers/acpi/pmic/intel_pmic_chtdc_ti.c | 13 ++++++++----- drivers/acpi/pmic/intel_pmic_chtwc.c | 5 +++-- drivers/acpi/pmic/intel_pmic_xpower.c | 7 ++++--- 3 files changed, 15 insertions(+), 10 deletions(-) -- 2.43.0.rc1.1336.g36b5255a03ac