lkml.org 
[lkml]   [2013]   [Sep]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3] mfd: add STw481x driver
> This adds a driver for the STw481x PMICs found in the Nomadik
> family of platforms. This one uses pure device tree probing.
> Print some of the OTP registers on boot and register a regulator
> MFD child.
>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
> ChangeLog v2->v3:
> - Instead of using "dummy" as the unused device ID, use "stw481x".
> ChangeLog v1->v2:
> - Fix remnant checkpatch errors.
> - #define some more registers to make things clear.
> - Document the power control register access function.
> - Don't free devm_*-allocated devices.
> - Use module_i2c_driver() macro.
> ---
> drivers/mfd/Kconfig | 10 ++
> drivers/mfd/Makefile | 1 +
> drivers/mfd/stw481x.c | 250 ++++++++++++++++++++++++++++++++++++++++++++
> include/linux/mfd/stw481x.h | 56 ++++++++++
> 4 files changed, 317 insertions(+)
> create mode 100644 drivers/mfd/stw481x.c
> create mode 100644 include/linux/mfd/stw481x.h

Nit:

> +static const struct i2c_device_id stw481x_id[] = {
> + { "stw481x", 0 },
> + { }

Where we have '{ }'.

> +};
> +
> +static const struct of_device_id stw481x_match[] = {
> + { .compatible = "st,stw4810", },
> + { .compatible = "st,stw4811", },
> + {},

And just down here the same function is provided with '{},'.

I'm happy to change it myself, rather that asking you to resubmit.

Which to you prefer?

--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2013-09-23 10:21    [W:0.072 / U:1.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site