* [PATCH 1/1] iio: cm36651: Remove redundant of_match_ptr helper
@ 2013-12-21 10:07 Sachin Kamat
2013-12-22 16:02 ` Jonathan Cameron
0 siblings, 1 reply; 2+ messages in thread
From: Sachin Kamat @ 2013-12-21 10:07 UTC (permalink / raw)
To: linux-iio; +Cc: jic23, sachin.kamat
'cm36651_of_match' is always compiled in. Hence the
helper macro is not needed.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
drivers/iio/light/cm36651.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/light/cm36651.c b/drivers/iio/light/cm36651.c
index 0922e39b0ea9..328ef3d760c3 100644
--- a/drivers/iio/light/cm36651.c
+++ b/drivers/iio/light/cm36651.c
@@ -693,7 +693,7 @@ static const struct of_device_id cm36651_of_match[] = {
static struct i2c_driver cm36651_driver = {
.driver = {
.name = "cm36651",
- .of_match_table = of_match_ptr(cm36651_of_match),
+ .of_match_table = cm36651_of_match,
.owner = THIS_MODULE,
},
.probe = cm36651_probe,
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] iio: cm36651: Remove redundant of_match_ptr helper
2013-12-21 10:07 [PATCH 1/1] iio: cm36651: Remove redundant of_match_ptr helper Sachin Kamat
@ 2013-12-22 16:02 ` Jonathan Cameron
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2013-12-22 16:02 UTC (permalink / raw)
To: Sachin Kamat, linux-iio
On 12/21/13 10:07, Sachin Kamat wrote:
> 'cm36651_of_match' is always compiled in. Hence the
> helper macro is not needed.
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Applied to the togreg branch of iio.git
Thanks,
> ---
> drivers/iio/light/cm36651.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/iio/light/cm36651.c b/drivers/iio/light/cm36651.c
> index 0922e39b0ea9..328ef3d760c3 100644
> --- a/drivers/iio/light/cm36651.c
> +++ b/drivers/iio/light/cm36651.c
> @@ -693,7 +693,7 @@ static const struct of_device_id cm36651_of_match[] = {
> static struct i2c_driver cm36651_driver = {
> .driver = {
> .name = "cm36651",
> - .of_match_table = of_match_ptr(cm36651_of_match),
> + .of_match_table = cm36651_of_match,
> .owner = THIS_MODULE,
> },
> .probe = cm36651_probe,
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-12-22 16:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-21 10:07 [PATCH 1/1] iio: cm36651: Remove redundant of_match_ptr helper Sachin Kamat
2013-12-22 16:02 ` Jonathan Cameron
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).