From patchwork Tue Dec 19 15:40:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 181064 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp2026647dyi; Tue, 19 Dec 2023 07:41:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IFmNC0xTq6E/6Br/4VhLbj03Cqe6zKsiQhKAOJ7Ph/fn/lAdEhS29ImftewyIm1AXqiT4Q1 X-Received: by 2002:a05:6a20:28a1:b0:194:bc44:b3d with SMTP id q33-20020a056a2028a100b00194bc440b3dmr371399pzf.24.1703000513321; Tue, 19 Dec 2023 07:41:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703000513; cv=none; d=google.com; s=arc-20160816; b=T2NupWdH9tnBoQufSW9jSV/aVS596aDjk1jjWQZuqq/+hUcIZM0rT98P6McNUuAE7/ mc/qqUhziAxLUVjKHDDlVgdHur8Gct5NhnkA2hDMLWIiY+eizbH28ZpmCnRrNwAvX8p0 pNirwiSJynaA3z97Do3b13R+7RrxvDiuGrKUbqcBMSpinoEKySZHOZsb4JNH6SGPE2e6 Zic4xHiJNGVAjSpPCuumwt0VxvEZHPkpHLbzhbZ7YZxsU53T3noI8nWWkdXuB1jQFPev uA02H3zEeeHbKCqnUs4zPc1Jjh9TTwTqH5YI7Q6GgBXoBE8xXQU/c12DFKTcY3ul79yS os4g== ARC-Message-Signature: i=1; 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=vUlRw/wQ7iKteW7raPDZMuljRJaqoa4jgQ7VVCCRwng=; fh=o2G22tNoTmzkomln/WfRsy2Lu6nU1ZoYjE5oXXtCqB8=; b=H4z4xZxhEeR6pDcnbyLlZDsBLPwrv44ded4mTO6zQer8UdT4U6vLnC/gpstsNWIe29 aPT/4YKNieM8zJwOaIePWNw234LjmfhJt9B79To/Q6K/9yxZqyYAQ3AJfb8BNi+OjO2A lNx+/g6U479u9LjyWEGs679sN+FYuPUjFkdZ7U0YbIOo8le1s7I2+9/GWl8SDvWPuBBY Twy7wxuTKQ9U8a5JhGA1S+iWMGSDzz4kZeMMKhj8MwSVLj3P+/CB93Y+CHsJZ7Oe+ZN8 wcmBlgSaHzuB1QKmF44hwa6+xWa7rFCfKoTt5ySgASJonlwVL7TdhNAxLjYu/7Cc8o04 lYXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=A2OYLjFC; spf=pass (google.com: domain of linux-kernel+bounces-5500-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5500-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id j26-20020a63fc1a000000b005c624eec079si13463197pgi.724.2023.12.19.07.41.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 07:41:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5500-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=A2OYLjFC; spf=pass (google.com: domain of linux-kernel+bounces-5500-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5500-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 D034EB236FD for ; Tue, 19 Dec 2023 15:41:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8E506208B7; Tue, 19 Dec 2023 15:40:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="A2OYLjFC" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.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 45D831CAA3 for ; Tue, 19 Dec 2023 15:40:17 +0000 (UTC) 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=1703000417; x=1734536417; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=iRILNP2tcTEDM7uYBHUSnLYvZeaP/4j8jrxcWfireyU=; b=A2OYLjFCef7AvAIkTQlGg+vdC+4sa5k3KSneXT0C3rm3rSRlMaOKVY30 SbBLneDeDaZGjFGjJNBEsP8oBsm5OfygGIQb+XodcBVMZF2UsDE4RMBgl exsWc5ePQzW3xz+vbnHjey35COgc181nQYphleC/BPO2IrhKYPWIe0j/w pryPv05fQLVExtTz4coG75+DoVz4gUoROpR0rYw6t4JRHJYwj3AGVra+l Xw+6GNPmrGngaFZolB067jZoRV/ZHeDbjpJ0L7Cn9UeTOJXqUD+5t61zt +br6E6ucLUwfWyfF6Rhu3p+6shpsCutRfXcXZt4zf4XTPm7fSqh8dco60 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10929"; a="2506290" X-IronPort-AV: E=Sophos;i="6.04,288,1695711600"; d="scan'208";a="2506290" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Dec 2023 07:40:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10929"; a="899407781" X-IronPort-AV: E=Sophos;i="6.04,288,1695711600"; d="scan'208";a="899407781" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga004.jf.intel.com with ESMTP; 19 Dec 2023 07:40:15 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id B851923A; Tue, 19 Dec 2023 17:40:13 +0200 (EET) From: Andy Shevchenko To: linux-kernel@vger.kernel.org Cc: Liam Girdwood , Mark Brown , Andy Shevchenko Subject: [PATCH v1 1/1] regulator: Reuse LINEAR_RANGE() in REGULATOR_LINEAR_RANGE() Date: Tue, 19 Dec 2023 17:40:12 +0200 Message-ID: <20231219154012.2478688-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: 1785725466345316851 X-GMAIL-MSGID: 1785725466345316851 REGULATOR_LINEAR_RANGE() repeats what LINEAR_RANGE() provides. Deduplicate the former by using the latter. No functional change intended. Signed-off-by: Andy Shevchenko --- include/linux/regulator/driver.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/include/linux/regulator/driver.h b/include/linux/regulator/driver.h index 4b7eceb3828b..22a07c0900a4 100644 --- a/include/linux/regulator/driver.h +++ b/include/linux/regulator/driver.h @@ -51,12 +51,7 @@ enum regulator_detection_severity { /* Initialize struct linear_range for regulators */ #define REGULATOR_LINEAR_RANGE(_min_uV, _min_sel, _max_sel, _step_uV) \ -{ \ - .min = _min_uV, \ - .min_sel = _min_sel, \ - .max_sel = _max_sel, \ - .step = _step_uV, \ -} + LINEAR_RANGE(_min_uV, _min_sel, _max_sel, _step_uV) /** * struct regulator_ops - regulator operations.