[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHp75Vd8tjNx1N=TVSS=coC8f1R7yGP07TXw7985+7yzAQXSTw@mail.gmail.com>
Date: Tue, 22 Sep 2020 11:22:50 +0300
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Krzysztof Kozlowski <krzk@...nel.org>
Cc: Lee Jones <lee.jones@...aro.org>,
Nicolas Ferre <nicolas.ferre@...rochip.com>,
Alexandre Belloni <alexandre.belloni@...tlin.com>,
Ludovic Desroches <ludovic.desroches@...rochip.com>,
Chen-Yu Tsai <wens@...e.org>,
Florian Fainelli <f.fainelli@...il.com>,
Ray Jui <rjui@...adcom.com>,
Scott Branden <sbranden@...adcom.com>,
bcm-kernel-feedback-list <bcm-kernel-feedback-list@...adcom.com>,
Nicolas Saenz Julienne <nsaenzjulienne@...e.de>,
Support Opensource <support.opensource@...semi.com>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Milo Kim <milo.kim@...com>,
Chanwoo Choi <cw00.choi@...sung.com>,
Bartlomiej Zolnierkiewicz <b.zolnierkie@...sung.com>,
Sangbeom Kim <sbkim73@...sung.com>,
Tony Lindgren <tony@...mide.com>,
patches@...nsource.cirrus.com,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
linux-arm Mailing List <linux-arm-kernel@...ts.infradead.org>,
linux-rpi-kernel <linux-rpi-kernel@...ts.infradead.org>,
linux-samsung-soc@...r.kernel.org,
Linux OMAP Mailing List <linux-omap@...r.kernel.org>
Subject: Re: [PATCH 11/42] mfd: intel_soc_pmic: use PLATFORM_DEVID_NONE
On Mon, Sep 21, 2020 at 11:54 PM Krzysztof Kozlowski <krzk@...nel.org> wrote:
>
> Use PLATFORM_DEVID_NONE define instead of "-1" value because:
> - it brings some meaning,
> - it might point attention why auto device ID was not used.
Reviewed-by: Andy Shevchenko <andy.shevchenko@...il.com>
> Signed-off-by: Krzysztof Kozlowski <krzk@...nel.org>
> ---
> drivers/mfd/intel_soc_pmic_core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mfd/intel_soc_pmic_core.c b/drivers/mfd/intel_soc_pmic_core.c
> index ddd64f9e3341..b7bbe58dedcc 100644
> --- a/drivers/mfd/intel_soc_pmic_core.c
> +++ b/drivers/mfd/intel_soc_pmic_core.c
> @@ -86,7 +86,7 @@ static int intel_soc_pmic_i2c_probe(struct i2c_client *i2c,
> /* Add lookup table for crc-pwm */
> pwm_add_table(crc_pwm_lookup, ARRAY_SIZE(crc_pwm_lookup));
>
> - ret = mfd_add_devices(dev, -1, config->cell_dev,
> + ret = mfd_add_devices(dev, PLATFORM_DEVID_NONE, config->cell_dev,
> config->n_cell_devs, NULL, 0,
> regmap_irq_get_domain(pmic->irq_chip_data));
> if (ret)
> --
> 2.17.1
>
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists