mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
V4L/DVB (11376): tvaudio.h: add static inline to retrieve the list of possible i2c addrs.
Rather than duplicating this list everywhere, just put it in tvaudio.h. Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
1792f68b0e
commit
940088a162
2 changed files with 21 additions and 13 deletions
|
|
@ -21,10 +21,29 @@
|
|||
#ifndef _TVAUDIO_H
|
||||
#define _TVAUDIO_H
|
||||
|
||||
#include <media/i2c-addr.h>
|
||||
|
||||
/* The tvaudio module accepts the following inputs: */
|
||||
#define TVAUDIO_INPUT_TUNER 0
|
||||
#define TVAUDIO_INPUT_RADIO 1
|
||||
#define TVAUDIO_INPUT_EXTERN 2
|
||||
#define TVAUDIO_INPUT_INTERN 3
|
||||
|
||||
static inline const unsigned short *tvaudio_addrs(void)
|
||||
{
|
||||
static const unsigned short addrs[] = {
|
||||
I2C_ADDR_TDA8425 >> 1,
|
||||
I2C_ADDR_TEA6300 >> 1,
|
||||
I2C_ADDR_TEA6420 >> 1,
|
||||
I2C_ADDR_TDA9840 >> 1,
|
||||
I2C_ADDR_TDA985x_L >> 1,
|
||||
I2C_ADDR_TDA985x_H >> 1,
|
||||
I2C_ADDR_TDA9874 >> 1,
|
||||
I2C_ADDR_PIC16C54 >> 1,
|
||||
I2C_CLIENT_END
|
||||
};
|
||||
|
||||
return addrs;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue