25 #include <linux/i2c.h>
31 #define dprintk(arg...)\
38 static LIST_HEAD(hybrid_tuner_instance_list);
45 u8 buf[] = { (reg >> 8) | 0x80, reg & 0xff, data };
48 .flags = 0, .buf =
buf, .len = 3 };
53 printk(
"%s: writereg error (reg == 0x%02x, val == 0x%04x, "
54 "ret == %i)\n", __func__, reg, data, ret);
56 return (ret != 1) ? -1 : 0;
63 u8 b0[] = { (reg >> 8) | 0x40, reg & 0xff };
67 { .
addr = state->
config->demod_address, .flags = 0,
68 .buf = b0, .len = 2 },
70 .buf = b1, .len = 1 } };
85 dprintk(
"%s(%d)\n", __func__, enable);
106 dprintk(
"%s(%d)\n", __func__, enable);
125 i2c, client_address,
"au8522");
177 if (!led_config || !led_config->
gpio_leds ||
193 dprintk(
"%s: %d\n", __func__, led);
195 au8522_led_gpio_enable(state, 1);
219 au8522_led_gpio_enable(state, 0);