From: Catalina Mocanu Date: Fri, 19 Sep 2014 21:32:09 +0000 (-0700) Subject: staging: iio: trigger: add blank lines after declarations X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=714ab9bdd350413f48ad401bd25e11b3e9f257ab;p=linux-beck.git staging: iio: trigger: add blank lines after declarations This fixes the following checkpatch.pl warning: WARNING: Missing a blank line after declarations. Signed-off-by: Catalina Mocanu Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/iio/trigger/iio-trig-periodic-rtc.c b/drivers/staging/iio/trigger/iio-trig-periodic-rtc.c index b1aeb88273c9..8f0a2ffa7150 100644 --- a/drivers/staging/iio/trigger/iio-trig-periodic-rtc.c +++ b/drivers/staging/iio/trigger/iio-trig-periodic-rtc.c @@ -33,6 +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); int ret; + if (trig_info->frequency == 0 && state) return -EINVAL; dev_dbg(&trig_info->rtc->dev, "trigger frequency is %d\n", @@ -50,6 +51,7 @@ static ssize_t iio_trig_periodic_read_freq(struct device *dev, { struct iio_trigger *trig = to_iio_trigger(dev); struct iio_prtc_trigger_info *trig_info = iio_trigger_get_drvdata(trig); + return sprintf(buf, "%u\n", trig_info->frequency); } @@ -183,6 +185,7 @@ static int iio_trig_periodic_rtc_remove(struct platform_device *dev) { struct iio_trigger *trig, *trig2; struct iio_prtc_trigger_info *trig_info; + mutex_lock(&iio_prtc_trigger_list_lock); list_for_each_entry_safe(trig, trig2,