Commit 1c70f7be authored by Peter Meerwald's avatar Peter Meerwald Committed by Jonathan Cameron

staging:iio-trig-periodic-rtc: Cleanup

Fix extra space in module description
Silence output about trigger frequency when trigger gets enabled/disabled
Signed-off-by: default avatarPeter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 97b603a4
...@@ -33,7 +33,7 @@ static int iio_trig_periodic_rtc_set_state(struct iio_trigger *trig, bool state) ...@@ -33,7 +33,7 @@ static int iio_trig_periodic_rtc_set_state(struct iio_trigger *trig, bool state)
struct iio_prtc_trigger_info *trig_info = iio_trigger_get_drvdata(trig); struct iio_prtc_trigger_info *trig_info = iio_trigger_get_drvdata(trig);
if (trig_info->frequency == 0) if (trig_info->frequency == 0)
return -EINVAL; return -EINVAL;
dev_info(&trig_info->rtc->dev, "trigger frequency is %d\n", dev_dbg(&trig_info->rtc->dev, "trigger frequency is %d\n",
trig_info->frequency); trig_info->frequency);
return rtc_irq_set_state(trig_info->rtc, &trig_info->task, state); return rtc_irq_set_state(trig_info->rtc, &trig_info->task, state);
} }
...@@ -128,8 +128,7 @@ static int iio_trig_periodic_rtc_probe(struct platform_device *dev) ...@@ -128,8 +128,7 @@ static int iio_trig_periodic_rtc_probe(struct platform_device *dev)
iio_trigger_set_drvdata(trig, trig_info); iio_trigger_set_drvdata(trig, trig_info);
trig->ops = &iio_prtc_trigger_ops; trig->ops = &iio_prtc_trigger_ops;
/* RTC access */ /* RTC access */
trig_info->rtc trig_info->rtc = rtc_class_open(pdata[i]);
= rtc_class_open(pdata[i]);
if (trig_info->rtc == NULL) { if (trig_info->rtc == NULL) {
ret = -EINVAL; ret = -EINVAL;
goto error_free_trig_info; goto error_free_trig_info;
...@@ -199,5 +198,5 @@ static struct platform_driver iio_trig_periodic_rtc_driver = { ...@@ -199,5 +198,5 @@ static struct platform_driver iio_trig_periodic_rtc_driver = {
module_platform_driver(iio_trig_periodic_rtc_driver); module_platform_driver(iio_trig_periodic_rtc_driver);
MODULE_AUTHOR("Jonathan Cameron <jic23@kernel.org>"); MODULE_AUTHOR("Jonathan Cameron <jic23@kernel.org>");
MODULE_DESCRIPTION("Periodic realtime clock trigger for the iio subsystem"); MODULE_DESCRIPTION("Periodic realtime clock trigger for the iio subsystem");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment