[PATCH 2/2] Staging: media: bcm2048: fixed warnings and erros

From: Ran Algawi
Date: Fri Feb 10 2017 - 04:29:40 EST


Fixed a coding style issue.
Also, fixed an error where the function used a decimal number instead of
an octal number when calling errors.

Signed-off-by: Ran Algawi <ran.algawi@xxxxxxxxx>
---
drivers/staging/media/bcm2048/radio-bcm2048.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/media/bcm2048/radio-bcm2048.c b/drivers/staging/media/bcm2048/radio-bcm2048.c
index 55968ba..6ba4061 100644
--- a/drivers/staging/media/bcm2048/radio-bcm2048.c
+++ b/drivers/staging/media/bcm2048/radio-bcm2048.c
@@ -1992,9 +1992,9 @@ static ssize_t bcm2048_##prop##_read(struct device *dev, \
return sprintf(buf, mask "\n", value); \
}

-#define DEFINE_SYSFS_PROPERTY(prop, signal, size, mask, check) \
+#define DEFINE_SYSFS_PROPERTY(prop, signal, size, mask, check) { \
property_write(prop, signal size, mask, check) \
-property_read(prop, size, mask)
+property_read(prop, size, mask) }

#define property_str_read(prop, size) \
static ssize_t bcm2048_##prop##_read(struct device *dev, \
--
2.7.4


--17pEHd4RhPHOinZp--