lkml.org 
[lkml]   [2015]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] staging: media: bcm2048: fix brace coding style issue in radio-bcm2048.c
Hi Jitendra,

[auto build test ERROR on linuxtv-media/master]
[also build test ERROR on v4.4-rc1 next-20151118]

url: https://github.com/0day-ci/linux/commits/Jitendra-Kumar-Khasdev/staging-media-bcm2048-fix-brace-coding-style-issue-in-radio-bcm2048-c/20151118-235820
base: git://linuxtv.org/media_tree.git master
config: xtensa-allyesconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=xtensa

All error/warnings (new ones prefixed by >>):

>> drivers/staging/media/bcm2048/radio-bcm2048.c:1963:1: error: expected identifier or '(' before 'static'
static ssize_t bcm2048_##prop##_write(struct device *dev, \
^
>> drivers/staging/media/bcm2048/radio-bcm2048.c:2024:2: note: in expansion of macro 'property_write'
(property_write(prop, signal size, mask, check) \
^
>> drivers/staging/media/bcm2048/radio-bcm2048.c:2051:1: note: in expansion of macro 'DEFINE_SYSFS_PROPERTY'
DEFINE_SYSFS_PROPERTY(power_state, unsigned, int, "%u", 0)
^
>> drivers/staging/media/bcm2048/radio-bcm2048.c:2025:32: error: expected identifier or '(' before ')' token
property_read(prop, size, mask))
^
drivers/staging/media/bcm2048/radio-bcm2048.c:2052:1: note: in expansion of macro 'DEFINE_SYSFS_PROPERTY'
DEFINE_SYSFS_PROPERTY(mute, unsigned, int, "%u", 0)
^
>> drivers/staging/media/bcm2048/radio-bcm2048.c:2025:32: error: expected identifier or '(' before ')' token
property_read(prop, size, mask))
^
drivers/staging/media/bcm2048/radio-bcm2048.c:2053:1: note: in expansion of macro 'DEFINE_SYSFS_PROPERTY'
DEFINE_SYSFS_PROPERTY(audio_route, unsigned, int, "%u", 0)
^
>> drivers/staging/media/bcm2048/radio-bcm2048.c:2025:32: error: expected identifier or '(' before ')' token
property_read(prop, size, mask))
^
drivers/staging/media/bcm2048/radio-bcm2048.c:2054:1: note: in expansion of macro 'DEFINE_SYSFS_PROPERTY'
DEFINE_SYSFS_PROPERTY(dac_output, unsigned, int, "%u", 0)
^
>> drivers/staging/media/bcm2048/radio-bcm2048.c:2025:32: error: expected identifier or '(' before ')' token
property_read(prop, size, mask))
^
drivers/staging/media/bcm2048/radio-bcm2048.c:2056:1: note: in expansion of macro 'DEFINE_SYSFS_PROPERTY'
DEFINE_SYSFS_PROPERTY(fm_hi_lo_injection, unsigned, int, "%u", 0)
^
>> drivers/staging/media/bcm2048/radio-bcm2048.c:2025:32: error: expected identifier or '(' before ')' token
property_read(prop, size, mask))
^
drivers/staging/media/bcm2048/radio-bcm2048.c:2057:1: note: in expansion of macro 'DEFINE_SYSFS_PROPERTY'
DEFINE_SYSFS_PROPERTY(fm_frequency, unsigned, int, "%u", 0)
^
>> drivers/staging/media/bcm2048/radio-bcm2048.c:2025:32: error: expected identifier or '(' before ')' token
property_read(prop, size, mask))
^
drivers/staging/media/bcm2048/radio-bcm2048.c:2058:1: note: in expansion of macro 'DEFINE_SYSFS_PROPERTY'
DEFINE_SYSFS_PROPERTY(fm_af_frequency, unsigned, int, "%u", 0)
^
>> drivers/staging/media/bcm2048/radio-bcm2048.c:2025:32: error: expected identifier or '(' before ')' token
property_read(prop, size, mask))
^
drivers/staging/media/bcm2048/radio-bcm2048.c:2059:1: note: in expansion of macro 'DEFINE_SYSFS_PROPERTY'
DEFINE_SYSFS_PROPERTY(fm_deemphasis, unsigned, int, "%u", 0)
^
>> drivers/staging/media/bcm2048/radio-bcm2048.c:2025:32: error: expected identifier or '(' before ')' token
property_read(prop, size, mask))
^
drivers/staging/media/bcm2048/radio-bcm2048.c:2060:1: note: in expansion of macro 'DEFINE_SYSFS_PROPERTY'
DEFINE_SYSFS_PROPERTY(fm_rds_mask, unsigned, int, "%u", 0)
^
>> drivers/staging/media/bcm2048/radio-bcm2048.c:2025:32: error: expected identifier or '(' before ')' token
property_read(prop, size, mask))
^
drivers/staging/media/bcm2048/radio-bcm2048.c:2061:1: note: in expansion of macro 'DEFINE_SYSFS_PROPERTY'
DEFINE_SYSFS_PROPERTY(fm_best_tune_mode, unsigned, int, "%u", 0)
^
>> drivers/staging/media/bcm2048/radio-bcm2048.c:2025:32: error: expected identifier or '(' before ')' token
property_read(prop, size, mask))
^
drivers/staging/media/bcm2048/radio-bcm2048.c:2062:1: note: in expansion of macro 'DEFINE_SYSFS_PROPERTY'
DEFINE_SYSFS_PROPERTY(fm_search_rssi_threshold, unsigned, int, "%u", 0)
^
>> drivers/staging/media/bcm2048/radio-bcm2048.c:2025:32: error: expected identifier or '(' before ')' token
property_read(prop, size, mask))
^
drivers/staging/media/bcm2048/radio-bcm2048.c:2063:1: note: in expansion of macro 'DEFINE_SYSFS_PROPERTY'
DEFINE_SYSFS_PROPERTY(fm_search_mode_direction, unsigned, int, "%u", 0)
^
>> drivers/staging/media/bcm2048/radio-bcm2048.c:2025:32: error: expected identifier or '(' before ')' token
property_read(prop, size, mask))
^
drivers/staging/media/bcm2048/radio-bcm2048.c:2064:1: note: in expansion of macro 'DEFINE_SYSFS_PROPERTY'
DEFINE_SYSFS_PROPERTY(fm_search_tune_mode, unsigned, int, "%u", value > 3)
^
>> drivers/staging/media/bcm2048/radio-bcm2048.c:2025:32: error: expected identifier or '(' before ')' token
property_read(prop, size, mask))
^
drivers/staging/media/bcm2048/radio-bcm2048.c:2066:1: note: in expansion of macro 'DEFINE_SYSFS_PROPERTY'
DEFINE_SYSFS_PROPERTY(rds, unsigned, int, "%u", 0)
^
>> drivers/staging/media/bcm2048/radio-bcm2048.c:2025:32: error: expected identifier or '(' before ')' token
property_read(prop, size, mask))
^
drivers/staging/media/bcm2048/radio-bcm2048.c:2067:1: note: in expansion of macro 'DEFINE_SYSFS_PROPERTY'
DEFINE_SYSFS_PROPERTY(rds_b_block_mask, unsigned, int, "%u", 0)
^
>> drivers/staging/media/bcm2048/radio-bcm2048.c:2025:32: error: expected identifier or '(' before ')' token
property_read(prop, size, mask))
^
drivers/staging/media/bcm2048/radio-bcm2048.c:2068:1: note: in expansion of macro 'DEFINE_SYSFS_PROPERTY'
DEFINE_SYSFS_PROPERTY(rds_b_block_match, unsigned, int, "%u", 0)
^
>> drivers/staging/media/bcm2048/radio-bcm2048.c:2025:32: error: expected identifier or '(' before ')' token
property_read(prop, size, mask))
^
drivers/staging/media/bcm2048/radio-bcm2048.c:2069:1: note: in expansion of macro 'DEFINE_SYSFS_PROPERTY'
DEFINE_SYSFS_PROPERTY(rds_pi_mask, unsigned, int, "%u", 0)
^
>> drivers/staging/media/bcm2048/radio-bcm2048.c:2025:32: error: expected identifier or '(' before ')' token
property_read(prop, size, mask))
^
drivers/staging/media/bcm2048/radio-bcm2048.c:2070:1: note: in expansion of macro 'DEFINE_SYSFS_PROPERTY'
DEFINE_SYSFS_PROPERTY(rds_pi_match, unsigned, int, "%u", 0)
^

vim +1963 drivers/staging/media/bcm2048/radio-bcm2048.c

899127b6 Hans Verkuil 2013-11-04 1957 }
899127b6 Hans Verkuil 2013-11-04 1958
899127b6 Hans Verkuil 2013-11-04 1959 /*
899127b6 Hans Verkuil 2013-11-04 1960 * BCM2048 sysfs interface definitions
899127b6 Hans Verkuil 2013-11-04 1961 */
899127b6 Hans Verkuil 2013-11-04 1962 #define property_write(prop, type, mask, check) \
899127b6 Hans Verkuil 2013-11-04 @1963 static ssize_t bcm2048_##prop##_write(struct device *dev, \
899127b6 Hans Verkuil 2013-11-04 1964 struct device_attribute *attr, \
899127b6 Hans Verkuil 2013-11-04 1965 const char *buf, \
899127b6 Hans Verkuil 2013-11-04 1966 size_t count) \
899127b6 Hans Verkuil 2013-11-04 1967 { \
899127b6 Hans Verkuil 2013-11-04 1968 struct bcm2048_device *bdev = dev_get_drvdata(dev); \
899127b6 Hans Verkuil 2013-11-04 1969 type value; \
899127b6 Hans Verkuil 2013-11-04 1970 int err; \
899127b6 Hans Verkuil 2013-11-04 1971 \
899127b6 Hans Verkuil 2013-11-04 1972 if (!bdev) \
899127b6 Hans Verkuil 2013-11-04 1973 return -ENODEV; \
899127b6 Hans Verkuil 2013-11-04 1974 \
b317d0f5 Luke Hart 2014-07-12 1975 if (sscanf(buf, mask, &value) != 1) \
b317d0f5 Luke Hart 2014-07-12 1976 return -EINVAL; \
899127b6 Hans Verkuil 2013-11-04 1977 \
899127b6 Hans Verkuil 2013-11-04 1978 if (check) \
899127b6 Hans Verkuil 2013-11-04 1979 return -EDOM; \
899127b6 Hans Verkuil 2013-11-04 1980 \
899127b6 Hans Verkuil 2013-11-04 1981 err = bcm2048_set_##prop(bdev, value); \
899127b6 Hans Verkuil 2013-11-04 1982 \
899127b6 Hans Verkuil 2013-11-04 1983 return err < 0 ? err : count; \
899127b6 Hans Verkuil 2013-11-04 1984 }
899127b6 Hans Verkuil 2013-11-04 1985
899127b6 Hans Verkuil 2013-11-04 1986 #define property_read(prop, size, mask) \
899127b6 Hans Verkuil 2013-11-04 @1987 static ssize_t bcm2048_##prop##_read(struct device *dev, \
899127b6 Hans Verkuil 2013-11-04 1988 struct device_attribute *attr, \
899127b6 Hans Verkuil 2013-11-04 1989 char *buf) \
899127b6 Hans Verkuil 2013-11-04 1990 { \
899127b6 Hans Verkuil 2013-11-04 1991 struct bcm2048_device *bdev = dev_get_drvdata(dev); \
356ba021 Mauro Carvalho Chehab 2013-12-09 1992 int value; \
899127b6 Hans Verkuil 2013-11-04 1993 \
899127b6 Hans Verkuil 2013-11-04 1994 if (!bdev) \
899127b6 Hans Verkuil 2013-11-04 1995 return -ENODEV; \
899127b6 Hans Verkuil 2013-11-04 1996 \
899127b6 Hans Verkuil 2013-11-04 1997 value = bcm2048_get_##prop(bdev); \
899127b6 Hans Verkuil 2013-11-04 1998 \
899127b6 Hans Verkuil 2013-11-04 1999 if (value >= 0) \
899127b6 Hans Verkuil 2013-11-04 2000 value = sprintf(buf, mask "\n", value); \
899127b6 Hans Verkuil 2013-11-04 2001 \
899127b6 Hans Verkuil 2013-11-04 2002 return value; \
899127b6 Hans Verkuil 2013-11-04 2003 }
899127b6 Hans Verkuil 2013-11-04 2004
899127b6 Hans Verkuil 2013-11-04 2005 #define property_signed_read(prop, size, mask) \
899127b6 Hans Verkuil 2013-11-04 2006 static ssize_t bcm2048_##prop##_read(struct device *dev, \
899127b6 Hans Verkuil 2013-11-04 2007 struct device_attribute *attr, \
899127b6 Hans Verkuil 2013-11-04 2008 char *buf) \
899127b6 Hans Verkuil 2013-11-04 2009 { \
899127b6 Hans Verkuil 2013-11-04 2010 struct bcm2048_device *bdev = dev_get_drvdata(dev); \
899127b6 Hans Verkuil 2013-11-04 2011 size value; \
899127b6 Hans Verkuil 2013-11-04 2012 \
899127b6 Hans Verkuil 2013-11-04 2013 if (!bdev) \
899127b6 Hans Verkuil 2013-11-04 2014 return -ENODEV; \
899127b6 Hans Verkuil 2013-11-04 2015 \
899127b6 Hans Verkuil 2013-11-04 2016 value = bcm2048_get_##prop(bdev); \
899127b6 Hans Verkuil 2013-11-04 2017 \
899127b6 Hans Verkuil 2013-11-04 2018 value = sprintf(buf, mask "\n", value); \
899127b6 Hans Verkuil 2013-11-04 2019 \
899127b6 Hans Verkuil 2013-11-04 2020 return value; \
899127b6 Hans Verkuil 2013-11-04 2021 }
899127b6 Hans Verkuil 2013-11-04 2022
899127b6 Hans Verkuil 2013-11-04 2023 #define DEFINE_SYSFS_PROPERTY(prop, signal, size, mask, check) \
2b88c4fc Jitendra Kumar Khasdev 2015-11-18 @2024 (property_write(prop, signal size, mask, check) \
2b88c4fc Jitendra Kumar Khasdev 2015-11-18 @2025 property_read(prop, size, mask))
899127b6 Hans Verkuil 2013-11-04 2026
899127b6 Hans Verkuil 2013-11-04 2027 #define property_str_read(prop, size) \
899127b6 Hans Verkuil 2013-11-04 2028 static ssize_t bcm2048_##prop##_read(struct device *dev, \
899127b6 Hans Verkuil 2013-11-04 2029 struct device_attribute *attr, \
899127b6 Hans Verkuil 2013-11-04 2030 char *buf) \
899127b6 Hans Verkuil 2013-11-04 2031 { \
899127b6 Hans Verkuil 2013-11-04 2032 struct bcm2048_device *bdev = dev_get_drvdata(dev); \
899127b6 Hans Verkuil 2013-11-04 2033 int count; \
899127b6 Hans Verkuil 2013-11-04 2034 u8 *out; \
899127b6 Hans Verkuil 2013-11-04 2035 \
899127b6 Hans Verkuil 2013-11-04 2036 if (!bdev) \
899127b6 Hans Verkuil 2013-11-04 2037 return -ENODEV; \
899127b6 Hans Verkuil 2013-11-04 2038 \
899127b6 Hans Verkuil 2013-11-04 2039 out = kzalloc(size + 1, GFP_KERNEL); \
899127b6 Hans Verkuil 2013-11-04 2040 if (!out) \
899127b6 Hans Verkuil 2013-11-04 2041 return -ENOMEM; \
899127b6 Hans Verkuil 2013-11-04 2042 \
899127b6 Hans Verkuil 2013-11-04 2043 bcm2048_get_##prop(bdev, out); \
899127b6 Hans Verkuil 2013-11-04 2044 count = sprintf(buf, "%s\n", out); \
899127b6 Hans Verkuil 2013-11-04 2045 \
899127b6 Hans Verkuil 2013-11-04 2046 kfree(out); \
899127b6 Hans Verkuil 2013-11-04 2047 \
899127b6 Hans Verkuil 2013-11-04 2048 return count; \
899127b6 Hans Verkuil 2013-11-04 2049 }
899127b6 Hans Verkuil 2013-11-04 2050
899127b6 Hans Verkuil 2013-11-04 @2051 DEFINE_SYSFS_PROPERTY(power_state, unsigned, int, "%u", 0)
899127b6 Hans Verkuil 2013-11-04 2052 DEFINE_SYSFS_PROPERTY(mute, unsigned, int, "%u", 0)
899127b6 Hans Verkuil 2013-11-04 2053 DEFINE_SYSFS_PROPERTY(audio_route, unsigned, int, "%u", 0)
899127b6 Hans Verkuil 2013-11-04 2054 DEFINE_SYSFS_PROPERTY(dac_output, unsigned, int, "%u", 0)
899127b6 Hans Verkuil 2013-11-04 2055
899127b6 Hans Verkuil 2013-11-04 2056 DEFINE_SYSFS_PROPERTY(fm_hi_lo_injection, unsigned, int, "%u", 0)
899127b6 Hans Verkuil 2013-11-04 2057 DEFINE_SYSFS_PROPERTY(fm_frequency, unsigned, int, "%u", 0)
899127b6 Hans Verkuil 2013-11-04 2058 DEFINE_SYSFS_PROPERTY(fm_af_frequency, unsigned, int, "%u", 0)
899127b6 Hans Verkuil 2013-11-04 2059 DEFINE_SYSFS_PROPERTY(fm_deemphasis, unsigned, int, "%u", 0)
899127b6 Hans Verkuil 2013-11-04 2060 DEFINE_SYSFS_PROPERTY(fm_rds_mask, unsigned, int, "%u", 0)
899127b6 Hans Verkuil 2013-11-04 2061 DEFINE_SYSFS_PROPERTY(fm_best_tune_mode, unsigned, int, "%u", 0)
899127b6 Hans Verkuil 2013-11-04 2062 DEFINE_SYSFS_PROPERTY(fm_search_rssi_threshold, unsigned, int, "%u", 0)
899127b6 Hans Verkuil 2013-11-04 2063 DEFINE_SYSFS_PROPERTY(fm_search_mode_direction, unsigned, int, "%u", 0)
899127b6 Hans Verkuil 2013-11-04 2064 DEFINE_SYSFS_PROPERTY(fm_search_tune_mode, unsigned, int, "%u", value > 3)
899127b6 Hans Verkuil 2013-11-04 2065
899127b6 Hans Verkuil 2013-11-04 2066 DEFINE_SYSFS_PROPERTY(rds, unsigned, int, "%u", 0)
899127b6 Hans Verkuil 2013-11-04 2067 DEFINE_SYSFS_PROPERTY(rds_b_block_mask, unsigned, int, "%u", 0)
899127b6 Hans Verkuil 2013-11-04 2068 DEFINE_SYSFS_PROPERTY(rds_b_block_match, unsigned, int, "%u", 0)
899127b6 Hans Verkuil 2013-11-04 2069 DEFINE_SYSFS_PROPERTY(rds_pi_mask, unsigned, int, "%u", 0)
899127b6 Hans Verkuil 2013-11-04 2070 DEFINE_SYSFS_PROPERTY(rds_pi_match, unsigned, int, "%u", 0)
899127b6 Hans Verkuil 2013-11-04 2071 DEFINE_SYSFS_PROPERTY(rds_wline, unsigned, int, "%u", 0)
899127b6 Hans Verkuil 2013-11-04 2072 property_read(rds_pi, unsigned int, "%x")
899127b6 Hans Verkuil 2013-11-04 @2073 property_str_read(rds_rt, (BCM2048_MAX_RDS_RT + 1))
899127b6 Hans Verkuil 2013-11-04 2074 property_str_read(rds_ps, (BCM2048_MAX_RDS_PS + 1))
899127b6 Hans Verkuil 2013-11-04 2075
899127b6 Hans Verkuil 2013-11-04 2076 property_read(fm_rds_flags, unsigned int, "%u")
899127b6 Hans Verkuil 2013-11-04 2077 property_str_read(rds_data, BCM2048_MAX_RDS_RADIO_TEXT*5)
899127b6 Hans Verkuil 2013-11-04 2078
899127b6 Hans Verkuil 2013-11-04 2079 property_read(region_bottom_frequency, unsigned int, "%u")
899127b6 Hans Verkuil 2013-11-04 2080 property_read(region_top_frequency, unsigned int, "%u")
899127b6 Hans Verkuil 2013-11-04 @2081 property_signed_read(fm_carrier_error, int, "%d")
899127b6 Hans Verkuil 2013-11-04 2082 property_signed_read(fm_rssi, int, "%d")
899127b6 Hans Verkuil 2013-11-04 2083 DEFINE_SYSFS_PROPERTY(region, unsigned, int, "%u", 0)
899127b6 Hans Verkuil 2013-11-04 2084
899127b6 Hans Verkuil 2013-11-04 2085 static struct device_attribute attrs[] = {
899127b6 Hans Verkuil 2013-11-04 2086 __ATTR(power_state, S_IRUGO | S_IWUSR, bcm2048_power_state_read,
899127b6 Hans Verkuil 2013-11-04 2087 bcm2048_power_state_write),
899127b6 Hans Verkuil 2013-11-04 2088 __ATTR(mute, S_IRUGO | S_IWUSR, bcm2048_mute_read,
899127b6 Hans Verkuil 2013-11-04 2089 bcm2048_mute_write),
899127b6 Hans Verkuil 2013-11-04 2090 __ATTR(audio_route, S_IRUGO | S_IWUSR, bcm2048_audio_route_read,
899127b6 Hans Verkuil 2013-11-04 2091 bcm2048_audio_route_write),
899127b6 Hans Verkuil 2013-11-04 2092 __ATTR(dac_output, S_IRUGO | S_IWUSR, bcm2048_dac_output_read,
899127b6 Hans Verkuil 2013-11-04 2093 bcm2048_dac_output_write),
899127b6 Hans Verkuil 2013-11-04 2094 __ATTR(fm_hi_lo_injection, S_IRUGO | S_IWUSR,
899127b6 Hans Verkuil 2013-11-04 2095 bcm2048_fm_hi_lo_injection_read,
899127b6 Hans Verkuil 2013-11-04 2096 bcm2048_fm_hi_lo_injection_write),
899127b6 Hans Verkuil 2013-11-04 2097 __ATTR(fm_frequency, S_IRUGO | S_IWUSR, bcm2048_fm_frequency_read,
899127b6 Hans Verkuil 2013-11-04 2098 bcm2048_fm_frequency_write),
899127b6 Hans Verkuil 2013-11-04 2099 __ATTR(fm_af_frequency, S_IRUGO | S_IWUSR,
899127b6 Hans Verkuil 2013-11-04 2100 bcm2048_fm_af_frequency_read,
899127b6 Hans Verkuil 2013-11-04 2101 bcm2048_fm_af_frequency_write),
899127b6 Hans Verkuil 2013-11-04 2102 __ATTR(fm_deemphasis, S_IRUGO | S_IWUSR, bcm2048_fm_deemphasis_read,
899127b6 Hans Verkuil 2013-11-04 2103 bcm2048_fm_deemphasis_write),
899127b6 Hans Verkuil 2013-11-04 2104 __ATTR(fm_rds_mask, S_IRUGO | S_IWUSR, bcm2048_fm_rds_mask_read,
899127b6 Hans Verkuil 2013-11-04 2105 bcm2048_fm_rds_mask_write),
899127b6 Hans Verkuil 2013-11-04 2106 __ATTR(fm_best_tune_mode, S_IRUGO | S_IWUSR,
899127b6 Hans Verkuil 2013-11-04 2107 bcm2048_fm_best_tune_mode_read,
899127b6 Hans Verkuil 2013-11-04 2108 bcm2048_fm_best_tune_mode_write),
899127b6 Hans Verkuil 2013-11-04 2109 __ATTR(fm_search_rssi_threshold, S_IRUGO | S_IWUSR,
899127b6 Hans Verkuil 2013-11-04 2110 bcm2048_fm_search_rssi_threshold_read,
899127b6 Hans Verkuil 2013-11-04 2111 bcm2048_fm_search_rssi_threshold_write),
899127b6 Hans Verkuil 2013-11-04 2112 __ATTR(fm_search_mode_direction, S_IRUGO | S_IWUSR,
899127b6 Hans Verkuil 2013-11-04 2113 bcm2048_fm_search_mode_direction_read,
899127b6 Hans Verkuil 2013-11-04 2114 bcm2048_fm_search_mode_direction_write),
899127b6 Hans Verkuil 2013-11-04 2115 __ATTR(fm_search_tune_mode, S_IRUGO | S_IWUSR,
899127b6 Hans Verkuil 2013-11-04 2116 bcm2048_fm_search_tune_mode_read,
899127b6 Hans Verkuil 2013-11-04 2117 bcm2048_fm_search_tune_mode_write),
899127b6 Hans Verkuil 2013-11-04 2118 __ATTR(rds, S_IRUGO | S_IWUSR, bcm2048_rds_read,
899127b6 Hans Verkuil 2013-11-04 2119 bcm2048_rds_write),
899127b6 Hans Verkuil 2013-11-04 2120 __ATTR(rds_b_block_mask, S_IRUGO | S_IWUSR,
899127b6 Hans Verkuil 2013-11-04 2121 bcm2048_rds_b_block_mask_read,
899127b6 Hans Verkuil 2013-11-04 2122 bcm2048_rds_b_block_mask_write),
899127b6 Hans Verkuil 2013-11-04 2123 __ATTR(rds_b_block_match, S_IRUGO | S_IWUSR,
899127b6 Hans Verkuil 2013-11-04 2124 bcm2048_rds_b_block_match_read,
899127b6 Hans Verkuil 2013-11-04 2125 bcm2048_rds_b_block_match_write),
899127b6 Hans Verkuil 2013-11-04 2126 __ATTR(rds_pi_mask, S_IRUGO | S_IWUSR, bcm2048_rds_pi_mask_read,
899127b6 Hans Verkuil 2013-11-04 2127 bcm2048_rds_pi_mask_write),
899127b6 Hans Verkuil 2013-11-04 2128 __ATTR(rds_pi_match, S_IRUGO | S_IWUSR, bcm2048_rds_pi_match_read,
899127b6 Hans Verkuil 2013-11-04 2129 bcm2048_rds_pi_match_write),
899127b6 Hans Verkuil 2013-11-04 2130 __ATTR(rds_wline, S_IRUGO | S_IWUSR, bcm2048_rds_wline_read,
899127b6 Hans Verkuil 2013-11-04 2131 bcm2048_rds_wline_write),
899127b6 Hans Verkuil 2013-11-04 2132 __ATTR(rds_pi, S_IRUGO, bcm2048_rds_pi_read, NULL),
899127b6 Hans Verkuil 2013-11-04 2133 __ATTR(rds_rt, S_IRUGO, bcm2048_rds_rt_read, NULL),
899127b6 Hans Verkuil 2013-11-04 2134 __ATTR(rds_ps, S_IRUGO, bcm2048_rds_ps_read, NULL),
899127b6 Hans Verkuil 2013-11-04 2135 __ATTR(fm_rds_flags, S_IRUGO, bcm2048_fm_rds_flags_read, NULL),
899127b6 Hans Verkuil 2013-11-04 2136 __ATTR(region_bottom_frequency, S_IRUGO,
899127b6 Hans Verkuil 2013-11-04 2137 bcm2048_region_bottom_frequency_read, NULL),
899127b6 Hans Verkuil 2013-11-04 2138 __ATTR(region_top_frequency, S_IRUGO,
899127b6 Hans Verkuil 2013-11-04 2139 bcm2048_region_top_frequency_read, NULL),
899127b6 Hans Verkuil 2013-11-04 2140 __ATTR(fm_carrier_error, S_IRUGO,
899127b6 Hans Verkuil 2013-11-04 2141 bcm2048_fm_carrier_error_read, NULL),
899127b6 Hans Verkuil 2013-11-04 2142 __ATTR(fm_rssi, S_IRUGO,
899127b6 Hans Verkuil 2013-11-04 2143 bcm2048_fm_rssi_read, NULL),
899127b6 Hans Verkuil 2013-11-04 2144 __ATTR(region, S_IRUGO | S_IWUSR, bcm2048_region_read,
899127b6 Hans Verkuil 2013-11-04 2145 bcm2048_region_write),
899127b6 Hans Verkuil 2013-11-04 2146 __ATTR(rds_data, S_IRUGO, bcm2048_rds_data_read, NULL),
899127b6 Hans Verkuil 2013-11-04 2147 };
899127b6 Hans Verkuil 2013-11-04 2148
899127b6 Hans Verkuil 2013-11-04 2149 static int bcm2048_sysfs_unregister_properties(struct bcm2048_device *bdev,
899127b6 Hans Verkuil 2013-11-04 2150 int size)
899127b6 Hans Verkuil 2013-11-04 2151 {
899127b6 Hans Verkuil 2013-11-04 2152 int i;
899127b6 Hans Verkuil 2013-11-04 2153
899127b6 Hans Verkuil 2013-11-04 2154 for (i = 0; i < size; i++)
899127b6 Hans Verkuil 2013-11-04 @2155 device_remove_file(&bdev->client->dev, &attrs[i]);
899127b6 Hans Verkuil 2013-11-04 2156
899127b6 Hans Verkuil 2013-11-04 2157 return 0;
899127b6 Hans Verkuil 2013-11-04 2158 }

:::::: The code at line 1963 was first introduced by commit
:::::: 899127b67df098e6d878f27be05dc91401cc6685 [media] This adds support for the BCM2048 radio module found in Nokia N900

:::::: TO: Hans Verkuil <hans.verkuil@cisco.com>
:::::: CC: Mauro Carvalho Chehab <m.chehab@samsung.com>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[unhandled content-type:application/octet-stream]
\
 
 \ /
  Last update: 2015-11-18 17:41    [W:0.064 / U:11.624 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site