* [PATCH v3 0/2] max77693: added device tree support
@ 2013-08-21 16:53 Andrzej Hajda
2013-08-21 16:53 ` [PATCH v3 1/2] max77693: remove device wakeup from driver Andrzej Hajda
2013-08-21 16:53 ` [PATCH v3 2/2] max77693: added device tree support Andrzej Hajda
0 siblings, 2 replies; 13+ messages in thread
From: Andrzej Hajda @ 2013-08-21 16:53 UTC (permalink / raw)
To: lee.jones
Cc: Andrzej Hajda, Rob Herring, Pawel Moll, Mark Rutland,
Stephen Warren, Ian Campbell, Rob Landley, Samuel Ortiz,
Grant Likely, Sylwester Nawrocki, Jonghwa Lee, Kyungmin Park,
open list:OPEN FIRMWARE AND..., open list
Hi,
The first patch cleans up the driver from unneccesary
wakeup handling.
The second patch adds device tree support to the driver.
Regards
Andrzej
Andrzej Hajda (2):
max77693: remove device wakeup from driver
max77693: added device tree support
drivers/mfd/max77693.c | 18 ++++++++----------
include/linux/mfd/max77693-private.h | 1 -
include/linux/mfd/max77693.h | 2 --
3 files changed, 8 insertions(+), 13 deletions(-)
--
1.8.1.2
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH v3 1/2] max77693: remove device wakeup from driver
2013-08-21 16:53 [PATCH v3 0/2] max77693: added device tree support Andrzej Hajda
@ 2013-08-21 16:53 ` Andrzej Hajda
2013-09-26 12:00 ` Andrzej Hajda
[not found] ` <1377104014-21910-2-git-send-email-a.hajda-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2013-08-21 16:53 ` [PATCH v3 2/2] max77693: added device tree support Andrzej Hajda
1 sibling, 2 replies; 13+ messages in thread
From: Andrzej Hajda @ 2013-08-21 16:53 UTC (permalink / raw)
To: lee.jones
Cc: Andrzej Hajda, Rob Herring, Pawel Moll, Mark Rutland,
Stephen Warren, Ian Campbell, Rob Landley, Samuel Ortiz,
Grant Likely, Sylwester Nawrocki, Jonghwa Lee, Kyungmin Park,
open list:OPEN FIRMWARE AND..., open list
The patch removes wakeup related code from
the driver and plaftorm data - it is already
handled by i2c core using I2C_CLIENT_WAKE flag
from struct i2c_board_info. As a result MFD
itself do not requires platform data.
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
drivers/mfd/max77693.c | 10 ----------
include/linux/mfd/max77693-private.h | 1 -
include/linux/mfd/max77693.h | 2 --
3 files changed, 13 deletions(-)
diff --git a/drivers/mfd/max77693.c b/drivers/mfd/max77693.c
index 9e60fed..27f5da3 100644
--- a/drivers/mfd/max77693.c
+++ b/drivers/mfd/max77693.c
@@ -110,15 +110,9 @@ static int max77693_i2c_probe(struct i2c_client *i2c,
const struct i2c_device_id *id)
{
struct max77693_dev *max77693;
- struct max77693_platform_data *pdata = i2c->dev.platform_data;
u8 reg_data;
int ret = 0;
- if (!pdata) {
- dev_err(&i2c->dev, "No platform data found.\n");
- return -EINVAL;
- }
-
max77693 = devm_kzalloc(&i2c->dev,
sizeof(struct max77693_dev), GFP_KERNEL);
if (max77693 == NULL)
@@ -138,8 +132,6 @@ static int max77693_i2c_probe(struct i2c_client *i2c,
return ret;
}
- max77693->wakeup = pdata->wakeup;
-
ret = max77693_read_reg(max77693->regmap, MAX77693_PMIC_REG_PMIC_ID2,
®_data);
if (ret < 0) {
@@ -179,8 +171,6 @@ static int max77693_i2c_probe(struct i2c_client *i2c,
if (ret < 0)
goto err_mfd;
- device_init_wakeup(max77693->dev, pdata->wakeup);
-
return ret;
err_mfd:
diff --git a/include/linux/mfd/max77693-private.h b/include/linux/mfd/max77693-private.h
index 244fb0d..3e050b9 100644
--- a/include/linux/mfd/max77693-private.h
+++ b/include/linux/mfd/max77693-private.h
@@ -323,7 +323,6 @@ struct max77693_dev {
int irq;
int irq_gpio;
- bool wakeup;
struct mutex irqlock;
int irq_masks_cur[MAX77693_IRQ_GROUP_NR];
int irq_masks_cache[MAX77693_IRQ_GROUP_NR];
diff --git a/include/linux/mfd/max77693.h b/include/linux/mfd/max77693.h
index 676f0f3..3f3dc45 100644
--- a/include/linux/mfd/max77693.h
+++ b/include/linux/mfd/max77693.h
@@ -64,8 +64,6 @@ struct max77693_muic_platform_data {
};
struct max77693_platform_data {
- int wakeup;
-
/* regulator data */
struct max77693_regulator_data *regulators;
int num_regulators;
--
1.8.1.2
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH v3 2/2] max77693: added device tree support
2013-08-21 16:53 [PATCH v3 0/2] max77693: added device tree support Andrzej Hajda
2013-08-21 16:53 ` [PATCH v3 1/2] max77693: remove device wakeup from driver Andrzej Hajda
@ 2013-08-21 16:53 ` Andrzej Hajda
2013-08-23 14:14 ` Mark Rutland
` (3 more replies)
1 sibling, 4 replies; 13+ messages in thread
From: Andrzej Hajda @ 2013-08-21 16:53 UTC (permalink / raw)
To: lee.jones
Cc: Andrzej Hajda, Rob Herring, Pawel Moll, Mark Rutland,
Stephen Warren, Ian Campbell, Rob Landley, Samuel Ortiz,
Grant Likely, Sylwester Nawrocki, Jonghwa Lee, Kyungmin Park,
open list:OPEN FIRMWARE AND..., open list
This patch adds only of_match_table.
There are no device specific properties.
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
drivers/mfd/max77693.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/mfd/max77693.c b/drivers/mfd/max77693.c
index 27f5da3..e0b11a9 100644
--- a/drivers/mfd/max77693.c
+++ b/drivers/mfd/max77693.c
@@ -225,11 +225,19 @@ static const struct dev_pm_ops max77693_pm = {
.resume = max77693_resume,
};
+#ifdef CONFIG_OF
+static struct of_device_id max77693_dt_match[] = {
+ {.compatible = "maxim,max77693"},
+ {},
+};
+#endif
+
static struct i2c_driver max77693_i2c_driver = {
.driver = {
.name = "max77693",
.owner = THIS_MODULE,
.pm = &max77693_pm,
+ .of_match_table = of_match_ptr(max77693_dt_match),
},
.probe = max77693_i2c_probe,
.remove = max77693_i2c_remove,
--
1.8.1.2
^ permalink raw reply related [flat|nested] 13+ messages in thread
* Re: [PATCH v3 2/2] max77693: added device tree support
2013-08-21 16:53 ` [PATCH v3 2/2] max77693: added device tree support Andrzej Hajda
@ 2013-08-23 14:14 ` Mark Rutland
2013-08-23 20:36 ` Tomasz Figa
2013-08-23 20:08 ` Tomasz Figa
` (2 subsequent siblings)
3 siblings, 1 reply; 13+ messages in thread
From: Mark Rutland @ 2013-08-23 14:14 UTC (permalink / raw)
To: Andrzej Hajda
Cc: lee.jones@linaro.org, rob.herring@calxeda.com, Pawel Moll,
Stephen Warren, Ian Campbell, Rob Landley, Samuel Ortiz,
grant.likely@linaro.org, Sylwester Nawrocki, Jonghwa Lee,
Kyungmin Park, open list:OPEN FIRMWARE AND..., open list
On Wed, Aug 21, 2013 at 05:53:34PM +0100, Andrzej Hajda wrote:
> This patch adds only of_match_table.
> There are no device specific properties.
Could you clarify what functionality this enables and what it doesn't,
please?
This doesn't seem to enable support for the regulators described in the
binding [1] (which from the looks of it needs proof-reading and possibly
rework).
Are there any changes we might need in future to either support new
functionality or to generalise the binding. e.g. do we need a regulator
for the LED?
Given the binding has never been supported, are we happy now that it
best represents the hardware, or are there avenues of improvement
*before* it becomes ABI?
Thanks,
Mark.
[1] Documentation/devicetree/bindings/mfd/max77693.txt
>
> Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
> Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> ---
> drivers/mfd/max77693.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/drivers/mfd/max77693.c b/drivers/mfd/max77693.c
> index 27f5da3..e0b11a9 100644
> --- a/drivers/mfd/max77693.c
> +++ b/drivers/mfd/max77693.c
> @@ -225,11 +225,19 @@ static const struct dev_pm_ops max77693_pm = {
> .resume = max77693_resume,
> };
>
> +#ifdef CONFIG_OF
> +static struct of_device_id max77693_dt_match[] = {
> + {.compatible = "maxim,max77693"},
> + {},
> +};
> +#endif
> +
> static struct i2c_driver max77693_i2c_driver = {
> .driver = {
> .name = "max77693",
> .owner = THIS_MODULE,
> .pm = &max77693_pm,
> + .of_match_table = of_match_ptr(max77693_dt_match),
> },
> .probe = max77693_i2c_probe,
> .remove = max77693_i2c_remove,
> --
> 1.8.1.2
>
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v3 2/2] max77693: added device tree support
2013-08-21 16:53 ` [PATCH v3 2/2] max77693: added device tree support Andrzej Hajda
2013-08-23 14:14 ` Mark Rutland
@ 2013-08-23 20:08 ` Tomasz Figa
2013-09-06 10:50 ` Mark Brown
2013-09-26 12:05 ` Andrzej Hajda
[not found] ` <1377104014-21910-3-git-send-email-a.hajda-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
3 siblings, 1 reply; 13+ messages in thread
From: Tomasz Figa @ 2013-08-23 20:08 UTC (permalink / raw)
To: Andrzej Hajda
Cc: lee.jones, Rob Herring, Pawel Moll, Mark Rutland, Stephen Warren,
Ian Campbell, Rob Landley, Samuel Ortiz, Grant Likely,
Sylwester Nawrocki, Jonghwa Lee, Kyungmin Park,
open list:OPEN FIRMWARE AND..., open list
Hi Andrzej,
On Wednesday 21 of August 2013 18:53:34 Andrzej Hajda wrote:
> This patch adds only of_match_table.
> There are no device specific properties.
>
> Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
> Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> ---
> drivers/mfd/max77693.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/drivers/mfd/max77693.c b/drivers/mfd/max77693.c
> index 27f5da3..e0b11a9 100644
> --- a/drivers/mfd/max77693.c
> +++ b/drivers/mfd/max77693.c
> @@ -225,11 +225,19 @@ static const struct dev_pm_ops max77693_pm = {
> .resume = max77693_resume,
> };
>
> +#ifdef CONFIG_OF
> +static struct of_device_id max77693_dt_match[] = {
> + {.compatible = "maxim,max77693"},
> + {},
> +};
> +#endif
> +
> static struct i2c_driver max77693_i2c_driver = {
> .driver = {
> .name = "max77693",
> .owner = THIS_MODULE,
> .pm = &max77693_pm,
> + .of_match_table = of_match_ptr(max77693_dt_match),
As far as I'm aware of, you don't need explicit OF match table for I2C
devices, because the I2C OF core can use the array of struct i2c_device_id
pointed by .id_table field of struct i2c_driver.
I'm not sure if a separate OF table isn't preferred, though, so your patch
might be fine.
Best regards,
Tomasz
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v3 2/2] max77693: added device tree support
2013-08-23 14:14 ` Mark Rutland
@ 2013-08-23 20:36 ` Tomasz Figa
0 siblings, 0 replies; 13+ messages in thread
From: Tomasz Figa @ 2013-08-23 20:36 UTC (permalink / raw)
To: Mark Rutland
Cc: Andrzej Hajda, lee.jones@linaro.org, rob.herring@calxeda.com,
Pawel Moll, Stephen Warren, Ian Campbell, Rob Landley,
Samuel Ortiz, grant.likely@linaro.org, Sylwester Nawrocki,
Jonghwa Lee, Kyungmin Park, open list:OPEN FIRMWARE AND...,
open list
Hi Mark,
On Friday 23 of August 2013 15:14:33 Mark Rutland wrote:
> On Wed, Aug 21, 2013 at 05:53:34PM +0100, Andrzej Hajda wrote:
> > This patch adds only of_match_table.
> > There are no device specific properties.
>
> Could you clarify what functionality this enables and what it doesn't,
> please?
This patch simply adds explicit OF match table for this device. Before,
the driver could be matched only by a fallback to i2c_device_id table.
> This doesn't seem to enable support for the regulators described in the
> binding [1] (which from the looks of it needs proof-reading and possibly
> rework).
>
> Are there any changes we might need in future to either support new
> functionality or to generalise the binding. e.g. do we need a regulator
> for the LED?
>
> Given the binding has never been supported, are we happy now that it
> best represents the hardware, or are there avenues of improvement
> *before* it becomes ABI?
Well, documentation of the binding has been present in kernel tree since
June, but I too think that we should review it and make sure it makes
sense. I'll try to get some information on this chip at work, on Monday.
Best regards,
Tomasz
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v3 2/2] max77693: added device tree support
2013-08-23 20:08 ` Tomasz Figa
@ 2013-09-06 10:50 ` Mark Brown
0 siblings, 0 replies; 13+ messages in thread
From: Mark Brown @ 2013-09-06 10:50 UTC (permalink / raw)
To: Tomasz Figa
Cc: Andrzej Hajda, lee.jones, Rob Herring, Pawel Moll, Mark Rutland,
Stephen Warren, Ian Campbell, Rob Landley, Samuel Ortiz,
Grant Likely, Sylwester Nawrocki, Jonghwa Lee, Kyungmin Park,
open list:OPEN FIRMWARE AND..., open list
[-- Attachment #1: Type: text/plain, Size: 796 bytes --]
On Fri, Aug 23, 2013 at 10:08:39PM +0200, Tomasz Figa wrote:
> On Wednesday 21 of August 2013 18:53:34 Andrzej Hajda wrote:
> > +#ifdef CONFIG_OF
> > +static struct of_device_id max77693_dt_match[] = {
> > + {.compatible = "maxim,max77693"},
> > + {},
> > +};
> > +#endif
> As far as I'm aware of, you don't need explicit OF match table for I2C
> devices, because the I2C OF core can use the array of struct i2c_device_id
> pointed by .id_table field of struct i2c_driver.
> I'm not sure if a separate OF table isn't preferred, though, so your patch
> might be fine.
It's still good practice to explicitly define a binding since that
gives a vendor prefix and there are overlaps out there in chip vendor
namings - for example both Wolfson and Wondermedia use "WMxxxx".
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v3 1/2] max77693: remove device wakeup from driver
2013-08-21 16:53 ` [PATCH v3 1/2] max77693: remove device wakeup from driver Andrzej Hajda
@ 2013-09-26 12:00 ` Andrzej Hajda
[not found] ` <1377104014-21910-2-git-send-email-a.hajda-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
1 sibling, 0 replies; 13+ messages in thread
From: Andrzej Hajda @ 2013-09-26 12:00 UTC (permalink / raw)
To: Andrzej Hajda
Cc: lee.jones, Rob Herring, Pawel Moll, Mark Rutland, Stephen Warren,
Ian Campbell, Rob Landley, Samuel Ortiz, Grant Likely,
Sylwester Nawrocki, Jonghwa Lee, Kyungmin Park,
open list:OPEN FIRMWARE AND..., open list
On 08/21/2013 06:53 PM, Andrzej Hajda wrote:
> The patch removes wakeup related code from
> the driver and plaftorm data - it is already
> handled by i2c core using I2C_CLIENT_WAKE flag
> from struct i2c_board_info. As a result MFD
> itself do not requires platform data.
>
> Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> ---
> drivers/mfd/max77693.c | 10 ----------
> include/linux/mfd/max77693-private.h | 1 -
> include/linux/mfd/max77693.h | 2 --
> 3 files changed, 13 deletions(-)
>
> diff --git a/drivers/mfd/max77693.c b/drivers/mfd/max77693.c
> index 9e60fed..27f5da3 100644
> --- a/drivers/mfd/max77693.c
> +++ b/drivers/mfd/max77693.c
> @@ -110,15 +110,9 @@ static int max77693_i2c_probe(struct i2c_client *i2c,
> const struct i2c_device_id *id)
> {
> struct max77693_dev *max77693;
> - struct max77693_platform_data *pdata = i2c->dev.platform_data;
> u8 reg_data;
> int ret = 0;
>
> - if (!pdata) {
> - dev_err(&i2c->dev, "No platform data found.\n");
> - return -EINVAL;
> - }
> -
> max77693 = devm_kzalloc(&i2c->dev,
> sizeof(struct max77693_dev), GFP_KERNEL);
> if (max77693 == NULL)
> @@ -138,8 +132,6 @@ static int max77693_i2c_probe(struct i2c_client *i2c,
> return ret;
> }
>
> - max77693->wakeup = pdata->wakeup;
> -
> ret = max77693_read_reg(max77693->regmap, MAX77693_PMIC_REG_PMIC_ID2,
> ®_data);
> if (ret < 0) {
> @@ -179,8 +171,6 @@ static int max77693_i2c_probe(struct i2c_client *i2c,
> if (ret < 0)
> goto err_mfd;
>
> - device_init_wakeup(max77693->dev, pdata->wakeup);
> -
> return ret;
>
> err_mfd:
> diff --git a/include/linux/mfd/max77693-private.h b/include/linux/mfd/max77693-private.h
> index 244fb0d..3e050b9 100644
> --- a/include/linux/mfd/max77693-private.h
> +++ b/include/linux/mfd/max77693-private.h
> @@ -323,7 +323,6 @@ struct max77693_dev {
>
> int irq;
> int irq_gpio;
> - bool wakeup;
> struct mutex irqlock;
> int irq_masks_cur[MAX77693_IRQ_GROUP_NR];
> int irq_masks_cache[MAX77693_IRQ_GROUP_NR];
> diff --git a/include/linux/mfd/max77693.h b/include/linux/mfd/max77693.h
> index 676f0f3..3f3dc45 100644
> --- a/include/linux/mfd/max77693.h
> +++ b/include/linux/mfd/max77693.h
> @@ -64,8 +64,6 @@ struct max77693_muic_platform_data {
> };
>
> struct max77693_platform_data {
> - int wakeup;
> -
> /* regulator data */
> struct max77693_regulator_data *regulators;
> int num_regulators;
Ping.
Regards
Andrzej
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v3 2/2] max77693: added device tree support
2013-08-21 16:53 ` [PATCH v3 2/2] max77693: added device tree support Andrzej Hajda
2013-08-23 14:14 ` Mark Rutland
2013-08-23 20:08 ` Tomasz Figa
@ 2013-09-26 12:05 ` Andrzej Hajda
[not found] ` <1377104014-21910-3-git-send-email-a.hajda-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
3 siblings, 0 replies; 13+ messages in thread
From: Andrzej Hajda @ 2013-09-26 12:05 UTC (permalink / raw)
To: Andrzej Hajda
Cc: lee.jones, Rob Herring, Pawel Moll, Mark Rutland, Stephen Warren,
Ian Campbell, Rob Landley, Samuel Ortiz, Grant Likely,
Sylwester Nawrocki, Jonghwa Lee, Kyungmin Park,
open list:OPEN FIRMWARE AND..., open list
On 08/21/2013 06:53 PM, Andrzej Hajda wrote:
> This patch adds only of_match_table.
> There are no device specific properties.
>
> Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
> Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> ---
> drivers/mfd/max77693.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/drivers/mfd/max77693.c b/drivers/mfd/max77693.c
> index 27f5da3..e0b11a9 100644
> --- a/drivers/mfd/max77693.c
> +++ b/drivers/mfd/max77693.c
> @@ -225,11 +225,19 @@ static const struct dev_pm_ops max77693_pm = {
> .resume = max77693_resume,
> };
>
> +#ifdef CONFIG_OF
> +static struct of_device_id max77693_dt_match[] = {
> + {.compatible = "maxim,max77693"},
> + {},
> +};
> +#endif
> +
> static struct i2c_driver max77693_i2c_driver = {
> .driver = {
> .name = "max77693",
> .owner = THIS_MODULE,
> .pm = &max77693_pm,
> + .of_match_table = of_match_ptr(max77693_dt_match),
> },
> .probe = max77693_i2c_probe,
> .remove = max77693_i2c_remove,
Ping.
Regards
Andrzej
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v3 2/2] max77693: added device tree support
[not found] ` <1377104014-21910-3-git-send-email-a.hajda-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
@ 2013-09-27 7:17 ` Lee Jones
2013-09-27 7:27 ` [PATCH v4 " Andrzej Hajda
0 siblings, 1 reply; 13+ messages in thread
From: Lee Jones @ 2013-09-27 7:17 UTC (permalink / raw)
To: Andrzej Hajda
Cc: Rob Herring, Pawel Moll, Mark Rutland, Stephen Warren,
Ian Campbell, Rob Landley, Samuel Ortiz, Grant Likely,
Sylwester Nawrocki, Jonghwa Lee, Kyungmin Park,
open list:OPEN FIRMWARE AND..., open list
On Wed, 21 Aug 2013, Andrzej Hajda wrote:
> This patch adds only of_match_table.
> There are no device specific properties.
>
> Signed-off-by: Andrzej Hajda <a.hajda-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
> Reviewed-by: Sylwester Nawrocki <s.nawrocki-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
> Signed-off-by: Kyungmin Park <kyungmin.park-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
> ---
> drivers/mfd/max77693.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/drivers/mfd/max77693.c b/drivers/mfd/max77693.c
> index 27f5da3..e0b11a9 100644
> --- a/drivers/mfd/max77693.c
> +++ b/drivers/mfd/max77693.c
> @@ -225,11 +225,19 @@ static const struct dev_pm_ops max77693_pm = {
> .resume = max77693_resume,
> };
>
> +#ifdef CONFIG_OF
> +static struct of_device_id max77693_dt_match[] = {
> + {.compatible = "maxim,max77693"},
Please add spaces before ".comp.." and after "...693""
> + {},
> +};
> +#endif
> +
> static struct i2c_driver max77693_i2c_driver = {
> .driver = {
> .name = "max77693",
> .owner = THIS_MODULE,
> .pm = &max77693_pm,
> + .of_match_table = of_match_ptr(max77693_dt_match),
> },
> .probe = max77693_i2c_probe,
> .remove = max77693_i2c_remove,
--
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 devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH v4 2/2] max77693: added device tree support
2013-09-27 7:17 ` Lee Jones
@ 2013-09-27 7:27 ` Andrzej Hajda
[not found] ` <1380266866-32103-1-git-send-email-a.hajda-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
0 siblings, 1 reply; 13+ messages in thread
From: Andrzej Hajda @ 2013-09-27 7:27 UTC (permalink / raw)
To: lee.jones
Cc: Andrzej Hajda, Rob Herring, Pawel Moll, Mark Rutland,
Stephen Warren, Ian Campbell, Rob Landley, Samuel Ortiz,
Grant Likely, Sylwester Nawrocki, Jonghwa Lee, Kyungmin Park,
open list:OPEN FIRMWARE AND..., open list
This patch adds only of_match_table.
There are no device specific properties.
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
Hi,
Spaces added.
Regards
Andrzej
---
drivers/mfd/max77693.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/mfd/max77693.c b/drivers/mfd/max77693.c
index 27f5da3..e0b11a9 100644
--- a/drivers/mfd/max77693.c
+++ b/drivers/mfd/max77693.c
@@ -225,11 +225,19 @@ static const struct dev_pm_ops max77693_pm = {
.resume = max77693_resume,
};
+#ifdef CONFIG_OF
+static struct of_device_id max77693_dt_match[] = {
+ { .compatible = "maxim,max77693" },
+ {},
+};
+#endif
+
static struct i2c_driver max77693_i2c_driver = {
.driver = {
.name = "max77693",
.owner = THIS_MODULE,
.pm = &max77693_pm,
+ .of_match_table = of_match_ptr(max77693_dt_match),
},
.probe = max77693_i2c_probe,
.remove = max77693_i2c_remove,
--
1.8.1.2
^ permalink raw reply related [flat|nested] 13+ messages in thread
* Re: [PATCH v3 1/2] max77693: remove device wakeup from driver
[not found] ` <1377104014-21910-2-git-send-email-a.hajda-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
@ 2013-09-27 7:29 ` Lee Jones
0 siblings, 0 replies; 13+ messages in thread
From: Lee Jones @ 2013-09-27 7:29 UTC (permalink / raw)
To: Andrzej Hajda
Cc: Rob Herring, Pawel Moll, Mark Rutland, Stephen Warren,
Ian Campbell, Rob Landley, Samuel Ortiz, Grant Likely,
Sylwester Nawrocki, Jonghwa Lee, Kyungmin Park,
open list:OPEN FIRMWARE AND..., open list
> The patch removes wakeup related code from
> the driver and plaftorm data - it is already
> handled by i2c core using I2C_CLIENT_WAKE flag
> from struct i2c_board_info. As a result MFD
> itself do not requires platform data.
I have expanded this to use more than 46 chars of the line
buffer. Please also do this for future submissions.
> Signed-off-by: Andrzej Hajda <a.hajda-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
> Signed-off-by: Kyungmin Park <kyungmin.park-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
> ---
> drivers/mfd/max77693.c | 10 ----------
> include/linux/mfd/max77693-private.h | 1 -
> include/linux/mfd/max77693.h | 2 --
> 3 files changed, 13 deletions(-)
Applied, thanks.
--
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 devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v4 2/2] max77693: added device tree support
[not found] ` <1380266866-32103-1-git-send-email-a.hajda-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
@ 2013-09-27 8:11 ` Lee Jones
0 siblings, 0 replies; 13+ messages in thread
From: Lee Jones @ 2013-09-27 8:11 UTC (permalink / raw)
To: Andrzej Hajda
Cc: Rob Herring, Pawel Moll, Mark Rutland, Stephen Warren,
Ian Campbell, Rob Landley, Samuel Ortiz, Grant Likely,
Sylwester Nawrocki, Jonghwa Lee, Kyungmin Park,
open list:OPEN FIRMWARE AND..., open list
On Fri, 27 Sep 2013, Andrzej Hajda wrote:
> This patch adds only of_match_table.
> There are no device specific properties.
>
> Signed-off-by: Andrzej Hajda <a.hajda-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
> Reviewed-by: Sylwester Nawrocki <s.nawrocki-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
> Signed-off-by: Kyungmin Park <kyungmin.park-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
> ---
> Hi,
>
> Spaces added.
>
> Regards
> Andrzej
> ---
> drivers/mfd/max77693.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
Applied, thanks.
--
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 devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2013-09-27 8:11 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-21 16:53 [PATCH v3 0/2] max77693: added device tree support Andrzej Hajda
2013-08-21 16:53 ` [PATCH v3 1/2] max77693: remove device wakeup from driver Andrzej Hajda
2013-09-26 12:00 ` Andrzej Hajda
[not found] ` <1377104014-21910-2-git-send-email-a.hajda-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2013-09-27 7:29 ` Lee Jones
2013-08-21 16:53 ` [PATCH v3 2/2] max77693: added device tree support Andrzej Hajda
2013-08-23 14:14 ` Mark Rutland
2013-08-23 20:36 ` Tomasz Figa
2013-08-23 20:08 ` Tomasz Figa
2013-09-06 10:50 ` Mark Brown
2013-09-26 12:05 ` Andrzej Hajda
[not found] ` <1377104014-21910-3-git-send-email-a.hajda-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2013-09-27 7:17 ` Lee Jones
2013-09-27 7:27 ` [PATCH v4 " Andrzej Hajda
[not found] ` <1380266866-32103-1-git-send-email-a.hajda-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2013-09-27 8:11 ` Lee Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).