Skip to content

Commit b802fb9

Browse files
Javier Martinez Canillasmchehab
authored andcommitted
[media] tvp5150: move input definition header to dt-bindings
Add a header file for the tvp5150 input connectors constants that can be shared between the driver and Device Tree source files. [mchehab@osg.samsung.com: rename tvp5150.h also at em28xx-cards.c] Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
1 parent f38f262 commit b802fb9

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎drivers/media/i2c/tvp5150.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* This code is placed under the terms of the GNU General Public License v2
66
*/
77

8+
#include <dt-bindings/media/tvp5150.h>
89
#include <linux/i2c.h>
910
#include <linux/slab.h>
1011
#include <linux/videodev2.h>
@@ -13,7 +14,6 @@
1314
#include <linux/module.h>
1415
#include <media/v4l2-async.h>
1516
#include <media/v4l2-device.h>
16-
#include <media/i2c/tvp5150.h>
1717
#include <media/v4l2-ctrls.h>
1818
#include <media/v4l2-of.h>
1919
#include <media/v4l2-mc.h>

‎drivers/media/usb/em28xx/em28xx-cards.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#include <media/tuner.h>
3333
#include <media/drv-intf/msp3400.h>
3434
#include <media/i2c/saa7115.h>
35-
#include <media/i2c/tvp5150.h>
35+
#include <dt-bindings/media/tvp5150.h>
3636
#include <media/i2c/tvaudio.h>
3737
#include <media/i2c-addr.h>
3838
#include <media/tveeprom.h>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
1919
*/
2020

21-
#ifndef _TVP5150_H_
22-
#define _TVP5150_H_
21+
#ifndef _DT_BINDINGS_MEDIA_TVP5150_H
22+
#define _DT_BINDINGS_MEDIA_TVP5150_H
2323

2424
/* TVP5150 HW inputs */
2525
#define TVP5150_COMPOSITE0 0
@@ -31,4 +31,4 @@
3131
#define TVP5150_NORMAL 0
3232
#define TVP5150_BLACK_SCREEN 1
3333

34-
#endif
34+
#endif /* _DT_BINDINGS_MEDIA_TVP5150_H */

0 commit comments

Comments
 (0)