mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-22 20:30:58 +02:00
Merge branch 'tbsdtv_linux_media/master' into tbsdtv_linux_media/latest
This commit is contained in:
@@ -25,8 +25,11 @@
|
||||
#endif
|
||||
|
||||
/* MACRO definitions */
|
||||
#ifndef MIN
|
||||
#define MAX(X, Y) ((X) >= (Y) ? (X) : (Y))
|
||||
#define MIN(X, Y) ((X) <= (Y) ? (X) : (Y))
|
||||
#endif
|
||||
|
||||
#define INRANGE(X, Y, Z) \
|
||||
((((X) <= (Y)) && ((Y) <= (Z))) || \
|
||||
(((Z) <= (Y)) && ((Y) <= (X))) ? 1 : 0)
|
||||
|
@@ -28,9 +28,9 @@
|
||||
/* ----------------------------------------------------------------------- */
|
||||
/* internal: the bttv "bus" */
|
||||
|
||||
static int bttv_sub_bus_match(struct device *dev, struct device_driver *drv)
|
||||
static int bttv_sub_bus_match(struct device *dev, const struct device_driver *drv)
|
||||
{
|
||||
struct bttv_sub_driver *sub = to_bttv_sub_drv(drv);
|
||||
const struct bttv_sub_driver *sub = to_bttv_sub_drv(drv);
|
||||
int len = strlen(sub->wanted);
|
||||
|
||||
if (0 == strncmp(dev_name(dev), sub->wanted, len))
|
||||
|
Reference in New Issue
Block a user