Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp760674img; Thu, 28 Feb 2019 07:27:54 -0800 (PST) X-Google-Smtp-Source: APXvYqwkFCPxkVLnw8utJXsOhYVpagaRLWC9XO1h64U/3k9CQB3F3pXoP0bFyq5piRqx0B4gj+V0 X-Received: by 2002:a62:39c5:: with SMTP id u66mr105049pfj.245.1551367674190; Thu, 28 Feb 2019 07:27:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551367674; cv=none; d=google.com; s=arc-20160816; b=lYUmPdzYv2IhpResd615NU226Gy4DafIOMyprtJuiyZ09lxVGx2lZiSSs42nh6IqsG iwhKz5290tOJALg1vaxEyrnJfTeowqhEfQuVgiNjprKvUPArw5az9FXXCc32TFdY5O/U WVsLEdXS7LtWzfaP3wGMlE+S5uREAzdzsd+8u0zCA/SQwX71AyGE2CdhXW9WnMfd9PDg rUValBYEdFlOe4bvi2TVqlhCz/tgAhl7EChJs7mh4lxk50TPNnbZETxV/dbOUlYiDMif tqJu5sFoMbywQ4Q5d+dk+9Vh8W2jZa911u31DEzamH0j/gvPdIKi+lK+pTDfm5cbTSsD ixdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=r9eGNpktD4dm01CtuMZJh7uN1hXwDTCAde7copKl+nc=; b=cVyM5AJf2rhG1EwaYfwt5zXu+6r6bR2rcDNhlqaLt/Weg3hBO1QHqKPthCrcXFlzAL O3slXnuc3h2ZprZoRoKs99rSX4fxA7D3c3v0NTr2Ld1AG0wY4MZ27kWg1jnXdQVrdd+I mkg6xu5F/dMjynnFQ7nTjAR1QHs6z2JQj44tCVfwlJKRXZDeLKzn8KDiE/wT/SLIij1v eJ3+ALQIk7pD0wMG22CIUSa79bymD8fjvAAAX7f4GUDDbiN/h2GH+4Xoa+lN6lwpRWWZ LT674cyF4Zo3yLSUzyWvlajhOYKRcvVxvdkrj6rI+oHl6LnQ/ar4KBnfbms4uRQKmzY5 cG6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dialogsemiconductor.onmicrosoft.com header.s=selector1-diasemi-com header.b=vpDsP0EQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=diasemi.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u26si16740684pga.281.2019.02.28.07.27.38; Thu, 28 Feb 2019 07:27:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@dialogsemiconductor.onmicrosoft.com header.s=selector1-diasemi-com header.b=vpDsP0EQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=diasemi.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388236AbfB1P0R (ORCPT + 99 others); Thu, 28 Feb 2019 10:26:17 -0500 Received: from mail1.bemta26.messagelabs.com ([85.158.142.1]:32599 "EHLO mail1.bemta26.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731953AbfB1P0K (ORCPT ); Thu, 28 Feb 2019 10:26:10 -0500 Received: from [85.158.142.98] (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits)) by server-1.bemta.az-a.eu-central-1.aws.symcld.net id 04/2C-30753-E8DF77C5; Thu, 28 Feb 2019 15:26:06 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBJs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ZEo9s9+8f2vySiKMJ+9+ZDH1KJ8es9Gm9Amhmnr3jv oqeYb7liuxFGckGmoxFxUnAgDz5Sq2CwQAAA== X-Env-Sender: stwiss.opensource@diasemi.com X-Msg-Ref: server-18.tower-223.messagelabs.com!1551367565!1673253!1 X-Originating-IP: [104.47.2.51] X-SYMC-ESS-Client-Auth: mailfrom-relay-check=pass X-StarScan-Received: X-StarScan-Version: 9.31.5; banners=-,-,- X-VirusChecked: Checked Received: (qmail 12873 invoked from network); 28 Feb 2019 15:26:06 -0000 Received: from mail-db5eur01lp2051.outbound.protection.outlook.com (HELO EUR01-DB5-obe.outbound.protection.outlook.com) (104.47.2.51) by server-18.tower-223.messagelabs.com with AES256-GCM-SHA384 encrypted SMTP; 28 Feb 2019 15:26:06 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dialogsemiconductor.onmicrosoft.com; s=selector1-diasemi-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=r9eGNpktD4dm01CtuMZJh7uN1hXwDTCAde7copKl+nc=; b=vpDsP0EQjYJL9gAOb2D6z7tVUl3AUDSbkGfS3/faWpubCAf3rZ+rq1tPqqkcJzjx6jV4PNYCbIbwTsv7XBYO+Bu7y/7IHvJ019kEx6Qz5wZTTyJORTVT7ebP8GYXeROFQO1FbDONR7ytOnedw8hSTtx2dYFuOMS7KL7O3F9Cc3s= Received: from VI1PR10MB2352.EURPRD10.PROD.OUTLOOK.COM (20.177.62.92) by VI1PR10MB1551.EURPRD10.PROD.OUTLOOK.COM (10.165.191.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.16; Thu, 28 Feb 2019 15:26:03 +0000 Received: from VI1PR10MB2352.EURPRD10.PROD.OUTLOOK.COM ([fe80::11b1:dc26:b933:c0]) by VI1PR10MB2352.EURPRD10.PROD.OUTLOOK.COM ([fe80::11b1:dc26:b933:c0%2]) with mapi id 15.20.1643.022; Thu, 28 Feb 2019 15:26:03 +0000 From: Steve Twiss To: Axel Lin , Mark Brown CC: James Seong-Won Ban , Support Opensource , "patches@opensource.cirrus.com" , Ashish Jangam , Paul Kocialkowski , Milo Kim , Keerthy , Bartosz Golaszewski , Liam Girdwood , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 08/11] regulator: pv88060: Convert to use regulator_set/get_current_limit_regmap Thread-Topic: [PATCH 08/11] regulator: pv88060: Convert to use regulator_set/get_current_limit_regmap Thread-Index: AQHUz2tSh39R8f1YZEyKtgRcj/8/GqX1PpxA Date: Thu, 28 Feb 2019 15:26:03 +0000 Message-ID: References: <20190228134022.32625-1-axel.lin@ingics.com> <20190228134022.32625-9-axel.lin@ingics.com> In-Reply-To: <20190228134022.32625-9-axel.lin@ingics.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [193.240.73.196] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 510fda0a-9b37-4ad7-9777-08d69d910d30 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020);SRVR:VI1PR10MB1551; x-ms-traffictypediagnostic: VI1PR10MB1551: x-microsoft-exchange-diagnostics: =?us-ascii?Q?1;VI1PR10MB1551;23:reeFYA5yj+S/fsr4mzDfEZD5V4XZGt6AQ/rKRNqxO?= =?us-ascii?Q?TOU8w9fZpcGjDdFiPVTm9/LYfAn+saGDGMm6jPwGfGjxCjxrAKjSmkqJfeXg?= =?us-ascii?Q?WUVEWVsgwgRevheVEMo68x6ZSMuMRLMFpWwaR6SBbR0i1xSanGFIgAzsrwuX?= =?us-ascii?Q?0xcBCE4gfRr4v63DvZNapKLz1ZdFhxY4fXZxEw4iCacD8FNjp9eOpYRiO1X+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cqL81dCfctYXPxnMaRklWR0pFi/KyjrSK75+MQrh?= =?us-ascii?Q?tPL1fdvX7GdSY/hLn9fHSI/vjGtHh5f4It0WUQOWDfZe5zfYi8BLLhOO4qgx?= =?us-ascii?Q?DRxl4WonBDMnO7X+eFSUyaa+qPgzXE64Rgek55fBPUXPQuqGWJMtNvJs8ZMF?= =?us-ascii?Q?Qspd2fxjIQ+dN7qydk=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 0962D394D2 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(396003)(376002)(136003)(346002)(39850400004)(199004)(189003)(316002)(6116002)(2906002)(3846002)(33656002)(478600001)(25786009)(99286004)(76176011)(4326008)(9686003)(8936002)(186003)(53936002)(53546011)(6506007)(102836004)(55016002)(14454004)(6246003)(54906003)(256004)(110136005)(14444005)(6436002)(7416002)(11346002)(7736002)(66066001)(81166006)(5660300002)(97736004)(229853002)(71190400001)(106356001)(486006)(7696005)(71200400001)(74316002)(446003)(476003)(26005)(8676002)(305945005)(68736007)(86362001)(81156014)(105586002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR10MB1551;H:VI1PR10MB2352.EURPRD10.PROD.OUTLOOK.COM;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:0;MX:1; received-spf: None (protection.outlook.com: diasemi.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: yDX2Qdyz4C8y/akTnmxzMeyRZOv/oi63ELM/PqWohMOHhnqzx+TceG0Ne+I5JPP0UxQwFw15Qc60F0XEHrIOBr5dWuo0k7A4MG686BTX1E/y18z2xfKmyqV9zQHiyzZtIZk2+TOdHEbN8coO8fCM8LcqFj2u5k2QjKUN4KybySF7BWJRxD+4CWUCKS5z7SXhTBAVzd7+U0gTVtXYfQhcWWL5zhvtW9QZGUL8kt8TcWXiMi2hEFjemM9iaVnB6XiMkAaAsEbx58V31k37FeBELvhANx51VB8AeCQ6BmkaJYVcN4xxWf/f8eYRlUR+tZvziFnvyf64fuWv/zo1Jl8cMWeUqlvaKw4gZ1MpNSQNjkpPrh25lPh1PSKV0lnWFQtPSDQQKMq0KYkZxYxpqk1tMF5yQ8F3JLBSNNNTMEDWyMI= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: diasemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: 510fda0a-9b37-4ad7-9777-08d69d910d30 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Feb 2019 15:26:03.4909 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 511e3c0e-ee96-486e-a2ec-e272ffa37b7c X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR10MB1551 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28 February 2019 13:40, Axel Lin wrote: > Subject: [PATCH 08/11] regulator: pv88060: Convert to use > regulator_set/get_current_limit_regmap >=20 > Use regulator_set/get_current_limit_regmap helpers to save some code. [...] Hi Axel, Looks good to me. Thanks again. Acked-by: Steve Twiss Regards, Steve > @@ -171,8 +133,8 @@ static const struct regulator_ops pv88060_buck_ops = =3D { > .set_voltage_sel =3D regulator_set_voltage_sel_regmap, > .get_voltage_sel =3D regulator_get_voltage_sel_regmap, > .list_voltage =3D regulator_list_voltage_linear, > - .set_current_limit =3D pv88060_set_current_limit, > - .get_current_limit =3D pv88060_get_current_limit, > + .set_current_limit =3D regulator_set_current_limit_regmap, > + .get_current_limit =3D regulator_get_current_limit_regmap, > }; >=20 > static const struct regulator_ops pv88060_ldo_ops =3D { > @@ -207,10 +169,11 @@ static const struct regulator_ops pv88060_sw_ops = =3D { > .enable_mask =3D PV88060_BUCK_EN, \ > .vsel_reg =3D PV88060_REG_##regl_name##_CONF0,\ > .vsel_mask =3D PV88060_VBUCK_MASK,\ > + .curr_table =3D limits_array,\ > + .n_current_limits =3D ARRAY_SIZE(limits_array),\ > + .csel_reg =3D PV88060_REG_##regl_name##_CONF1,\ > + .csel_mask =3D PV88060_BUCK_ILIM_MASK,\ > },\ > - .current_limits =3D limits_array,\ > - .n_current_limits =3D ARRAY_SIZE(limits_array),\ > - .limit_mask =3D PV88060_BUCK_ILIM_MASK, \ > .conf =3D PV88060_REG_##regl_name##_CONF1,\ > } >=20 > -- > 2.17.1