Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2049545imm; Thu, 24 May 2018 05:05:39 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr0IBnJHLq45gFUZ7Dp6VgEZKCRU/O9mZMAmS3OLpe7KSQcUeXFoGbZBEZdlDh+5XVDtMNR X-Received: by 2002:a63:2ace:: with SMTP id q197-v6mr5752888pgq.60.1527163539786; Thu, 24 May 2018 05:05:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527163539; cv=none; d=google.com; s=arc-20160816; b=tciaG+NL7xBmB+CFmX0brZrV5SEETsjG6mRwxOq7j1Ee1kudsPWsBGAY6WCOHD4ovK ArWAuX8FmXvs9xEbWr6IFlwngCbydVge0tg1CgPt/T1SFa309yHq8MUng2URJ3D1tqLA VQi2iTp/hKQhpZCzlOXh++s38J1ItuWSNcV8sUj2bPwlyKi0MUMajIUIsQUNUkch0ITy 8gsRFm1A0m2s/x0EqO918llFQyXasoAI5L3DrG2v7PffSW251HquYgEl4CeZ2mqXoIt4 iGL8aj+6E/xBuP/u5WVgWlhmCFd+KdUUL+LKHvCTnvwKiyFA3IjHcXNN6pwZLbMPFCgB Y88Q== 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 :arc-authentication-results; bh=qUHZILu95DbKQA/t00sqo6JgAHlf9B/fpy7dvLCOIe4=; b=crNukyqQJmb3E9DImGg7wJ1aLhJMQNO6ObVuun/v1m8XiUhVJ8hGXswwgRp67ac5+Z 2LVHkkt+oI2QFuHLM1yt26M+DnhLBffCKbqNNf6KZg02dugM4nnxtNnowPK4qAjnel/f syEfsViQghRmR2ndM8TBcXa9dQWQ0R7BqSDd209PVmLUKYHwfSQeVOT/UGyATS/IPcD0 wPfC16OIUyNVaB/okV7b65+wfYFKa5Vo9WNNf1TQ36j9qtHioWbxK7HTx39iQUQYoxpf OmyoBdZDEMQwhP8oJZueV4F1217Mddgqf5NZnQCl5KnOcfexbsOnR4MpTL2vsPFwLJx5 +P5w== ARC-Authentication-Results: i=1; mx.google.com; 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 p18-v6si16661805pgv.493.2018.05.24.05.05.24; Thu, 24 May 2018 05:05:39 -0700 (PDT) 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; 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 S969676AbeEXMDU convert rfc822-to-8bit (ORCPT + 99 others); Thu, 24 May 2018 08:03:20 -0400 Received: from mail1.bemta25.messagelabs.com ([195.245.230.129]:5495 "EHLO mail1.bemta25.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S969636AbeEXMDP (ORCPT ); Thu, 24 May 2018 08:03:15 -0400 Received: from [46.226.53.50] (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits)) by server-1.bemta.az-c.eu-west-1.aws.symcld.net id A2/51-21568-10AA60B5; Thu, 24 May 2018 12:03:13 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrPKsWRWlGSWpSXmKPExsUSt3OpsS7jKrZ og+cnRS2mPnzCZjF39iRGi/tfjzJaXN41h81i68t3TBYPV85hsTi65x6zRd85dwcOj4lndT12 zrrL7rFpVSebx51re9g8ni1cz+LxeZNcAFsUa2ZeUn5FAmvG4u8bGAvuS1W8+PKLqYHxtVgXI xeHkMAyRokZ304wdjFycrAJGErMe/MezBYRSJd4d2EBI0gRs8BZJonLCzczgySEBQIkWhbOYo IoCpT4OW09C4RtJPHs2Ucwm0VAVWJZ+32wGl6g+v3fvrOC2EICThJbuq6B2ZwCzhI/f+8Eq2c UkJX40rgabD6zgLjErSfzwXolBAQkluw5zwxhi0q8fPyPFcJWkLj/phsqbi/x+t47FghbX+LR 40eMELahxKppB6Di5hIfzrZDzdeRWLD7ExuErS2xbOFrZog7BSVOznzCMoFRfBaSM2YhaZmFp GUWkpYFjCyrGM2TijLTM0pyEzNzdA0NDHQNDY10jQyA2FwvsUo3WS+1VLc8tbhE11AvsbxYr7 gyNzknRS8vtWQTIzDiGYBgB+OTb8mHGCU5mJREeZ2Y2aKF+JLyUyozEosz4otKc1KLDzHKcHA oSfDKrgDKCRalpqdWpGXmAFMPTFqCg0dJhDcPJM1bXJCYW5yZDpE6xagoJc4bA5IQAElklObB tcHS3SVGWSlhXkagQ4R4ClKLcjNLUOVfMYpzMCoJ87qBTOHJzCuBm/4KaDET0OKLy5lBFpckI qSkGhjnW+StXGcrsy7vjM583d5zTna7tklod5tp3I7svvzp9ffkFc5f0hYskREusZn6Q3rXB8 nk148W8Yhbr4y/NUXwr8U/6UfbfpkskD1zve+icma9jc6BHI+JEgddVB7kL57581b35dWWyf8 Eb9b0KddttG/7+eTKhbPCQiU1kisV9ArZNF6U/Y5XYinOSDTUYi4qTgQA5dckvXIDAAA= X-Env-Sender: stwiss.opensource@diasemi.com X-Msg-Ref: server-16.tower-302.messagelabs.com!1527163393!407451!1 X-Originating-IP: [94.185.165.51] X-SYMC-ESS-Client-Auth: outbound-route-from=pass X-StarScan-Received: X-StarScan-Version: 9.9.15; banners=-,-,- X-VirusChecked: Checked Received: (qmail 28811 invoked from network); 24 May 2018 12:03:13 -0000 Received: from mailrelay2.diasemi.com (HELO sw-ex-cashub02.diasemi.com) (94.185.165.51) by server-16.tower-302.messagelabs.com with AES128-SHA encrypted SMTP; 24 May 2018 12:03:13 -0000 Received: from SW-EX-MBX02.diasemi.com ([169.254.4.155]) by sw-ex-cashub02.diasemi.com ([10.20.16.142]) with mapi id 14.03.0382.000; Thu, 24 May 2018 13:03:13 +0100 From: Steve Twiss To: Marek Vasut , "linux-kernel@vger.kernel.org" CC: Marek Vasut , Geert Uytterhoeven , Lee Jones , Mark Brown , Steve Twiss , "Wolfram Sang" , "linux-renesas-soc@vger.kernel.org" Subject: RE: [PATCH 1/6] mfd: da9063: Rename PMIC_DA9063 to PMIC_CHIP_ID_DA9063 Thread-Topic: [PATCH 1/6] mfd: da9063: Rename PMIC_DA9063 to PMIC_CHIP_ID_DA9063 Thread-Index: AQHT8osv+hT7ofMqCkKXF13aivMng6Q+xhYw Date: Thu, 24 May 2018 12:03:12 +0000 Message-ID: <6ED8E3B22081A4459DAC7699F3695FB701941A482F@SW-EX-MBX02.diasemi.com> References: <20180523114230.10109-1-marek.vasut+renesas@gmail.com> In-Reply-To: <20180523114230.10109-1-marek.vasut+renesas@gmail.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.20.35.206] x-kse-attachmentfiltering-interceptor-info: protection disabled x-kse-serverinfo: sw-ex-cashub02.diasemi.com, 9 x-kse-antivirus-interceptor-info: scan successful x-kse-antivirus-info: Clean, bases: 24/05/2018 11:32:00 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marek, On 23 May 2018 12:42 Marek Vasut wrote: > To: linux-kernel@vger.kernel.org > Cc: Marek Vasut ; Geert Uytterhoeven ; Lee Jones ; Mark Brown ; Steve Twiss ; Wolfram Sang ; linux-renesas-soc@vger.kernel.org > Subject: [PATCH 1/6] mfd: da9063: Rename PMIC_DA9063 to PMIC_CHIP_ID_DA9063 > > The PMIC_DA9063 is a complete misnomer, it denotes the value of the > DA9063 chip ID register, so rename it as such. It is also the value of chip ID register of DA9063L though, so drop the enum as all the > DA9063 "models" share the same chip ID and thus the distinction will have to be made using DT or otherwise. > > Signed-off-by: Marek Vasut > Cc: Geert Uytterhoeven > Cc: Lee Jones > Cc: Mark Brown > Cc: Steve Twiss > Cc: Wolfram Sang > Cc: linux-renesas-soc@vger.kernel.org > --- > drivers/mfd/da9063-core.c | 2 +- > drivers/mfd/da9063-i2c.c | 2 +- > drivers/regulator/da9063-regulator.c | 2 +- > include/linux/mfd/da9063/core.h | 4 +--- > 4 files changed, 4 insertions(+), 6 deletions(-) > > diff --git a/drivers/mfd/da9063-core.c b/drivers/mfd/da9063-core.c index 6c2870d4e754..00b3caee4e21 100644 > --- a/drivers/mfd/da9063-core.c > +++ b/drivers/mfd/da9063-core.c > @@ -192,7 +192,7 @@ int da9063_device_init(struct da9063 *da9063, unsigned int irq) > dev_err(da9063->dev, "Cannot read chip model id.\n"); > return -EIO; > } > - if (model != PMIC_DA9063) { > + if (model != PMIC_CHIP_ID_DA9063) { > dev_err(da9063->dev, "Invalid chip model id: 0x%02x\n", model); > return -ENODEV; > } > diff --git a/drivers/mfd/da9063-i2c.c b/drivers/mfd/da9063-i2c.c index 981805a2c521..7f84030c8d53 100644 > --- a/drivers/mfd/da9063-i2c.c > +++ b/drivers/mfd/da9063-i2c.c > @@ -280,7 +280,7 @@ static int da9063_i2c_remove(struct i2c_client *i2c) } > > static const struct i2c_device_id da9063_i2c_id[] = { > - {"da9063", PMIC_DA9063}, > + { "da9063", PMIC_CHIP_ID_DA9063 }, > {}, > }; > MODULE_DEVICE_TABLE(i2c, da9063_i2c_id); diff --git a/drivers/regulator/da9063-regulator.c b/drivers/regulator/da9063-regulator.c > index 6a8f9cd69f52..87c884ae0064 100644 > --- a/drivers/regulator/da9063-regulator.c > +++ b/drivers/regulator/da9063-regulator.c > @@ -585,7 +585,7 @@ static struct da9063_dev_model regulators_models[] = { > { > .regulator_info = da9063_regulator_info, > .n_regulators = ARRAY_SIZE(da9063_regulator_info), > - .dev_model = PMIC_DA9063, > + .dev_model = PMIC_CHIP_ID_DA9063, > }, > { } > }; > diff --git a/include/linux/mfd/da9063/core.h b/include/linux/mfd/da9063/core.h index f3ae65db4c86..664f650d0086 100644 > --- a/include/linux/mfd/da9063/core.h > +++ b/include/linux/mfd/da9063/core.h > @@ -29,9 +29,7 @@ > #define DA9063_DRVNAME_RTC "da9063-rtc" > #define DA9063_DRVNAME_VIBRATION "da9063-vibration" > > -enum da9063_models { > - PMIC_DA9063 = 0x61, > -}; > +#define PMIC_CHIP_ID_DA9063 0x61 > > enum da9063_variant_codes { > PMIC_DA9063_AD = 0x3, > -- > 2.16.2 Acked-by: Steve Twiss Regards, Steve