>From c0f4ae981d1fa3be29c4dfed4494d71f24309056 Mon Sep 17 00:00:00 2001 From: Ran Algawi Date: Fri, 10 Feb 2017 11:29:40 +0200 Subject: [PATCH 2/2] Staging: media: bcm2048: fixed warnings and erros 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 --- 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