summaryrefslogtreecommitdiff
path: root/drivers/media/usb/airspy
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2014-08-25 01:31:52 +0400
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-09-21 23:42:31 +0400
commit7057005db6482516099e7b48b3bebaf9a3f213cb (patch)
tree09ffd2241faece48a0c82a5289dc7fc7bef4c1c0 /drivers/media/usb/airspy
parent6b831d78477c9bbfbcb4cb60af13e13bd2c7467e (diff)
downloadlinux-7057005db6482516099e7b48b3bebaf9a3f213cb.tar.xz
[media] airspy: coding style issues
Fix issues reported by checkpatch.pl. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/usb/airspy')
-rw-r--r--drivers/media/usb/airspy/airspy.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/usb/airspy/airspy.c b/drivers/media/usb/airspy/airspy.c
index 56a1ae05ea7b..dee1fe2669a6 100644
--- a/drivers/media/usb/airspy/airspy.c
+++ b/drivers/media/usb/airspy/airspy.c
@@ -255,6 +255,7 @@ static unsigned int airspy_convert_stream(struct airspy *s,
if (unlikely(time_is_before_jiffies(s->jiffies_next))) {
#define MSECS 10000UL
unsigned int samples = s->sample - s->sample_measured;
+
s->jiffies_next = jiffies + msecs_to_jiffies(MSECS);
s->sample_measured = s->sample;
dev_dbg(&s->udev->dev,
@@ -462,6 +463,7 @@ static void airspy_cleanup_queued_bufs(struct airspy *s)
spin_lock_irqsave(&s->queued_bufs_lock, flags);
while (!list_empty(&s->queued_bufs)) {
struct airspy_frame_buf *buf;
+
buf = list_entry(s->queued_bufs.next,
struct airspy_frame_buf, list);
list_del(&buf->list);
@@ -772,6 +774,7 @@ static int airspy_g_frequency(struct file *file, void *priv,
{
struct airspy *s = video_drvdata(file);
int ret = 0;
+
dev_dbg(&s->udev->dev, "%s: tuner=%d type=%d\n",
__func__, f->tuner, f->type);
@@ -829,6 +832,7 @@ static int airspy_enum_freq_bands(struct file *file, void *priv,
{
struct airspy *s = video_drvdata(file);
int ret;
+
dev_dbg(&s->udev->dev, "%s: tuner=%d type=%d index=%d\n",
__func__, band->tuner, band->type, band->index);