![Mauro Carvalho Chehab](/assets/img/avatar_default.png)
Let's not mix platform_data headers with the core headers. Instead, let's create a subdir at linux/platform_data and move the headers to that common place, adding it to MAINTAINERS. The headers were moved with: mkdir include/linux/platform_data/media/; git mv include/media/gpio-ir-recv.h include/media/ir-rx51.h include/media/mmp-camera.h include/media/omap1_camera.h include/media/omap4iss.h include/media/s5p_hdmi.h include/media/si4713.h include/media/sii9234.h include/media/smiapp.h include/media/soc_camera.h include/media/soc_camera_platform.h include/media/timb_radio.h include/media/timb_video.h include/linux/platform_data/media/ And the references fixed with this script: MAIN_DIR="linux/platform_data/" PREV_DIR="media/" DIRS="media/" echo "Checking affected files" >&2 for i in $DIRS; do for j in $(find include/$MAIN_DIR/$i -type f -name '*.h'); do n=`basename $j` git grep -l $n done done|sort|uniq >files && ( echo "Handling files..." >&2; echo "for i in \$(cat files|grep -v Documentation); do cat \$i | \\"; ( cd include/$MAIN_DIR; for j in $DIRS; do for i in $(ls $j); do echo "perl -ne 's,(include [\\\"\\<])$PREV_DIR($i)([\\\"\\>]),\1$MAIN_DIR$j\2\3,; print \$_' |\\"; done; done; echo "cat > a && mv a \$i; done"; ); echo "Handling documentation..." >&2; echo "for i in MAINTAINERS \$(cat files); do cat \$i | \\"; ( cd include/$MAIN_DIR; for j in $DIRS; do for i in $(ls $j); do echo " perl -ne 's,include/$PREV_DIR($i)\b,include/$MAIN_DIR$j\1,; print \$_' |\\"; done; done; echo "cat > a && mv a \$i; done" ); ) >script && . ./script Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Lee Jones <lee.jones@linaro.org> Acked-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
49 lines
1.4 KiB
C
49 lines
1.4 KiB
C
/*
|
|
* include/linux/platform_data/media/si4713.h
|
|
*
|
|
* Board related data definitions for Si4713 i2c device driver.
|
|
*
|
|
* Copyright (c) 2009 Nokia Corporation
|
|
* Contact: Eduardo Valentin <eduardo.valentin@nokia.com>
|
|
*
|
|
* This file is licensed under the terms of the GNU General Public License
|
|
* version 2. This program is licensed "as is" without any warranty of any
|
|
* kind, whether express or implied.
|
|
*
|
|
*/
|
|
|
|
#ifndef SI4713_H
|
|
#define SI4713_H
|
|
|
|
/* The SI4713 I2C sensor chip has a fixed slave address of 0xc6 or 0x22. */
|
|
#define SI4713_I2C_ADDR_BUSEN_HIGH 0x63
|
|
#define SI4713_I2C_ADDR_BUSEN_LOW 0x11
|
|
|
|
/*
|
|
* Platform dependent definition
|
|
*/
|
|
struct si4713_platform_data {
|
|
bool is_platform_device;
|
|
};
|
|
|
|
/*
|
|
* Structure to query for Received Noise Level (RNL).
|
|
*/
|
|
struct si4713_rnl {
|
|
__u32 index; /* modulator index */
|
|
__u32 frequency; /* frequency to peform rnl measurement */
|
|
__s32 rnl; /* result of measurement in dBuV */
|
|
__u32 reserved[4]; /* drivers and apps must init this to 0 */
|
|
};
|
|
|
|
/*
|
|
* This is the ioctl number to query for rnl. Users must pass a
|
|
* struct si4713_rnl pointer specifying desired frequency in 'frequency' field
|
|
* following driver capabilities (i.e V4L2_TUNER_CAP_LOW).
|
|
* Driver must return measured value in the same struture, filling 'rnl' field.
|
|
*/
|
|
#define SI4713_IOC_MEASURE_RNL _IOWR('V', BASE_VIDIOC_PRIVATE + 0, \
|
|
struct si4713_rnl)
|
|
|
|
#endif /* ifndef SI4713_H*/
|