* [PATCH 1/1] staging: iio: hmc5843: Remove redundant of_match_ptr helper
@ 2013-12-21 10:02 Sachin Kamat
2013-12-22 16:02 ` Jonathan Cameron
0 siblings, 1 reply; 2+ messages in thread
From: Sachin Kamat @ 2013-12-21 10:02 UTC (permalink / raw)
To: linux-iio; +Cc: jic23, sachin.kamat
'hmc5843_of_match' is always compiled in. Hence the helper
macro is not needed.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
drivers/staging/iio/magnetometer/hmc5843.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/iio/magnetometer/hmc5843.c b/drivers/staging/iio/magnetometer/hmc5843.c
index 8802f72bedde..d4f4dd90c699 100644
--- a/drivers/staging/iio/magnetometer/hmc5843.c
+++ b/drivers/staging/iio/magnetometer/hmc5843.c
@@ -639,7 +639,7 @@ static struct i2c_driver hmc5843_driver = {
.driver = {
.name = "hmc5843",
.pm = HMC5843_PM_OPS,
- .of_match_table = of_match_ptr(hmc5843_of_match),
+ .of_match_table = hmc5843_of_match,
},
.id_table = hmc5843_id,
.probe = hmc5843_probe,
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] staging: iio: hmc5843: Remove redundant of_match_ptr helper
2013-12-21 10:02 [PATCH 1/1] staging: iio: hmc5843: 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:02, Sachin Kamat wrote:
> 'hmc5843_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/staging/iio/magnetometer/hmc5843.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/iio/magnetometer/hmc5843.c b/drivers/staging/iio/magnetometer/hmc5843.c
> index 8802f72bedde..d4f4dd90c699 100644
> --- a/drivers/staging/iio/magnetometer/hmc5843.c
> +++ b/drivers/staging/iio/magnetometer/hmc5843.c
> @@ -639,7 +639,7 @@ static struct i2c_driver hmc5843_driver = {
> .driver = {
> .name = "hmc5843",
> .pm = HMC5843_PM_OPS,
> - .of_match_table = of_match_ptr(hmc5843_of_match),
> + .of_match_table = hmc5843_of_match,
> },
> .id_table = hmc5843_id,
> .probe = hmc5843_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:02 [PATCH 1/1] staging: iio: hmc5843: 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).