Skip to content

Commit

Permalink
[media] tvp5150: move input definition header to dt-bindings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Javier Martinez Canillas authored and Mauro Carvalho Chehab committed Feb 11, 2016
1 parent f38f262 commit b802fb9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion drivers/media/i2c/tvp5150.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* This code is placed under the terms of the GNU General Public License v2
*/

#include <dt-bindings/media/tvp5150.h>
#include <linux/i2c.h>
#include <linux/slab.h>
#include <linux/videodev2.h>
Expand All @@ -13,7 +14,6 @@
#include <linux/module.h>
#include <media/v4l2-async.h>
#include <media/v4l2-device.h>
#include <media/i2c/tvp5150.h>
#include <media/v4l2-ctrls.h>
#include <media/v4l2-of.h>
#include <media/v4l2-mc.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/usb/em28xx/em28xx-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include <media/tuner.h>
#include <media/drv-intf/msp3400.h>
#include <media/i2c/saa7115.h>
#include <media/i2c/tvp5150.h>
#include <dt-bindings/media/tvp5150.h>
#include <media/i2c/tvaudio.h>
#include <media/i2c-addr.h>
#include <media/tveeprom.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

#ifndef _TVP5150_H_
#define _TVP5150_H_
#ifndef _DT_BINDINGS_MEDIA_TVP5150_H
#define _DT_BINDINGS_MEDIA_TVP5150_H

/* TVP5150 HW inputs */
#define TVP5150_COMPOSITE0 0
Expand All @@ -31,4 +31,4 @@
#define TVP5150_NORMAL 0
#define TVP5150_BLACK_SCREEN 1

#endif
#endif /* _DT_BINDINGS_MEDIA_TVP5150_H */

0 comments on commit b802fb9

Please sign in to comment.