Mauro Carvalho Chehab | d56410e | 2006-03-25 09:19:53 -0300 | [diff] [blame] | 1 | /* |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | * bt856 - BT856A Digital Video Encoder (Rockwell Part) |
| 3 | * |
| 4 | * Copyright (C) 1999 Mike Bernson <mike@mlb.org> |
| 5 | * Copyright (C) 1998 Dave Perks <dperks@ibm.net> |
| 6 | * |
| 7 | * Modifications for LML33/DC10plus unified driver |
| 8 | * Copyright (C) 2000 Serguei Miridonov <mirsev@cicese.mx> |
| 9 | * |
| 10 | * This code was modify/ported from the saa7111 driver written |
| 11 | * by Dave Perks. |
| 12 | * |
| 13 | * Changes by Ronald Bultje <rbultje@ronald.bitfreak.net> |
| 14 | * - moved over to linux>=2.4.x i2c protocol (9/9/2002) |
| 15 | * |
| 16 | * This program is free software; you can redistribute it and/or modify |
| 17 | * it under the terms of the GNU General Public License as published by |
| 18 | * the Free Software Foundation; either version 2 of the License, or |
| 19 | * (at your option) any later version. |
| 20 | * |
| 21 | * This program is distributed in the hope that it will be useful, |
| 22 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 23 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 24 | * GNU General Public License for more details. |
| 25 | * |
| 26 | * You should have received a copy of the GNU General Public License |
| 27 | * along with this program; if not, write to the Free Software |
| 28 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 29 | */ |
| 30 | |
| 31 | #include <linux/module.h> |
Mauro Carvalho Chehab | 18f3fa1 | 2007-07-02 15:39:57 -0300 | [diff] [blame] | 32 | #include <linux/types.h> |
Tejun Heo | 5a0e3ad | 2010-03-24 17:04:11 +0900 | [diff] [blame] | 33 | #include <linux/slab.h> |
Hans Verkuil | a8c26df | 2008-09-07 07:59:35 -0300 | [diff] [blame] | 34 | #include <linux/ioctl.h> |
Mauro Carvalho Chehab | 18f3fa1 | 2007-07-02 15:39:57 -0300 | [diff] [blame] | 35 | #include <asm/uaccess.h> |
Hans Verkuil | a8c26df | 2008-09-07 07:59:35 -0300 | [diff] [blame] | 36 | #include <linux/i2c.h> |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 37 | #include <linux/videodev2.h> |
| 38 | #include <media/v4l2-device.h> |
| 39 | #include <media/v4l2-chip-ident.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 40 | |
| 41 | MODULE_DESCRIPTION("Brooktree-856A video encoder driver"); |
| 42 | MODULE_AUTHOR("Mike Bernson & Dave Perks"); |
| 43 | MODULE_LICENSE("GPL"); |
| 44 | |
Douglas Schilling Landgraf | ff699e6 | 2008-04-22 14:41:48 -0300 | [diff] [blame] | 45 | static int debug; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 46 | module_param(debug, int, 0); |
| 47 | MODULE_PARM_DESC(debug, "Debug level (0-1)"); |
| 48 | |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 49 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 50 | /* ----------------------------------------------------------------------- */ |
| 51 | |
Hans Verkuil | 187565c | 2008-08-30 06:03:09 -0300 | [diff] [blame] | 52 | #define BT856_REG_OFFSET 0xDA |
| 53 | #define BT856_NR_REG 6 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 54 | |
| 55 | struct bt856 { |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 56 | struct v4l2_subdev sd; |
Jean Delvare | f49a5ea | 2006-03-22 03:48:36 -0300 | [diff] [blame] | 57 | unsigned char reg[BT856_NR_REG]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 58 | |
Hans Verkuil | 107063c | 2009-02-18 17:26:06 -0300 | [diff] [blame] | 59 | v4l2_std_id norm; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 60 | }; |
| 61 | |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 62 | static inline struct bt856 *to_bt856(struct v4l2_subdev *sd) |
| 63 | { |
| 64 | return container_of(sd, struct bt856, sd); |
| 65 | } |
| 66 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 67 | /* ----------------------------------------------------------------------- */ |
| 68 | |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 69 | static inline int bt856_write(struct bt856 *encoder, u8 reg, u8 value) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 70 | { |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 71 | struct i2c_client *client = v4l2_get_subdevdata(&encoder->sd); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 72 | |
Hans Verkuil | 187565c | 2008-08-30 06:03:09 -0300 | [diff] [blame] | 73 | encoder->reg[reg - BT856_REG_OFFSET] = value; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 74 | return i2c_smbus_write_byte_data(client, reg, value); |
| 75 | } |
| 76 | |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 77 | static inline int bt856_setbit(struct bt856 *encoder, u8 reg, u8 bit, u8 value) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 78 | { |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 79 | return bt856_write(encoder, reg, |
Hans Verkuil | a8c26df | 2008-09-07 07:59:35 -0300 | [diff] [blame] | 80 | (encoder->reg[reg - BT856_REG_OFFSET] & ~(1 << bit)) | |
| 81 | (value ? (1 << bit) : 0)); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 82 | } |
| 83 | |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 84 | static void bt856_dump(struct bt856 *encoder) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 85 | { |
| 86 | int i; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 87 | |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 88 | v4l2_info(&encoder->sd, "register dump:\n"); |
Jean Delvare | f49a5ea | 2006-03-22 03:48:36 -0300 | [diff] [blame] | 89 | for (i = 0; i < BT856_NR_REG; i += 2) |
Hans Verkuil | a8c26df | 2008-09-07 07:59:35 -0300 | [diff] [blame] | 90 | printk(KERN_CONT " %02x", encoder->reg[i]); |
| 91 | printk(KERN_CONT "\n"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 92 | } |
| 93 | |
| 94 | /* ----------------------------------------------------------------------- */ |
| 95 | |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 96 | static int bt856_init(struct v4l2_subdev *sd, u32 arg) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 97 | { |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 98 | struct bt856 *encoder = to_bt856(sd); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 99 | |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 100 | /* This is just for testing!!! */ |
| 101 | v4l2_dbg(1, debug, sd, "init\n"); |
| 102 | bt856_write(encoder, 0xdc, 0x18); |
| 103 | bt856_write(encoder, 0xda, 0); |
| 104 | bt856_write(encoder, 0xde, 0); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 105 | |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 106 | bt856_setbit(encoder, 0xdc, 3, 1); |
| 107 | /*bt856_setbit(encoder, 0xdc, 6, 0);*/ |
| 108 | bt856_setbit(encoder, 0xdc, 4, 1); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 109 | |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 110 | if (encoder->norm & V4L2_STD_NTSC) |
| 111 | bt856_setbit(encoder, 0xdc, 2, 0); |
| 112 | else |
| 113 | bt856_setbit(encoder, 0xdc, 2, 1); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 114 | |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 115 | bt856_setbit(encoder, 0xdc, 1, 1); |
| 116 | bt856_setbit(encoder, 0xde, 4, 0); |
| 117 | bt856_setbit(encoder, 0xde, 3, 1); |
| 118 | if (debug != 0) |
| 119 | bt856_dump(encoder); |
| 120 | return 0; |
| 121 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 122 | |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 123 | static int bt856_s_std_output(struct v4l2_subdev *sd, v4l2_std_id std) |
| 124 | { |
| 125 | struct bt856 *encoder = to_bt856(sd); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 126 | |
Hans Verkuil | cc5cef8 | 2009-03-06 10:15:01 -0300 | [diff] [blame] | 127 | v4l2_dbg(1, debug, sd, "set norm %llx\n", (unsigned long long)std); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 128 | |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 129 | if (std & V4L2_STD_NTSC) { |
| 130 | bt856_setbit(encoder, 0xdc, 2, 0); |
| 131 | } else if (std & V4L2_STD_PAL) { |
| 132 | bt856_setbit(encoder, 0xdc, 2, 1); |
| 133 | bt856_setbit(encoder, 0xda, 0, 0); |
| 134 | /*bt856_setbit(encoder, 0xda, 0, 1);*/ |
| 135 | } else { |
| 136 | return -EINVAL; |
Hans Verkuil | a8c26df | 2008-09-07 07:59:35 -0300 | [diff] [blame] | 137 | } |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 138 | encoder->norm = std; |
| 139 | if (debug != 0) |
| 140 | bt856_dump(encoder); |
| 141 | return 0; |
| 142 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 143 | |
Hans Verkuil | 5325b42 | 2009-04-02 11:26:22 -0300 | [diff] [blame] | 144 | static int bt856_s_routing(struct v4l2_subdev *sd, |
| 145 | u32 input, u32 output, u32 config) |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 146 | { |
| 147 | struct bt856 *encoder = to_bt856(sd); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 148 | |
Hans Verkuil | 5325b42 | 2009-04-02 11:26:22 -0300 | [diff] [blame] | 149 | v4l2_dbg(1, debug, sd, "set input %d\n", input); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 150 | |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 151 | /* We only have video bus. |
Hans Verkuil | 5325b42 | 2009-04-02 11:26:22 -0300 | [diff] [blame] | 152 | * input= 0: input is from bt819 |
| 153 | * input= 1: input is from ZR36060 */ |
| 154 | switch (input) { |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 155 | case 0: |
| 156 | bt856_setbit(encoder, 0xde, 4, 0); |
| 157 | bt856_setbit(encoder, 0xde, 3, 1); |
| 158 | bt856_setbit(encoder, 0xdc, 3, 1); |
| 159 | bt856_setbit(encoder, 0xdc, 6, 0); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 160 | break; |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 161 | case 1: |
| 162 | bt856_setbit(encoder, 0xde, 4, 0); |
| 163 | bt856_setbit(encoder, 0xde, 3, 1); |
| 164 | bt856_setbit(encoder, 0xdc, 3, 1); |
| 165 | bt856_setbit(encoder, 0xdc, 6, 1); |
| 166 | break; |
| 167 | case 2: /* Color bar */ |
| 168 | bt856_setbit(encoder, 0xdc, 3, 0); |
| 169 | bt856_setbit(encoder, 0xde, 4, 1); |
| 170 | break; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 171 | default: |
| 172 | return -EINVAL; |
| 173 | } |
| 174 | |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 175 | if (debug != 0) |
| 176 | bt856_dump(encoder); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 177 | return 0; |
| 178 | } |
| 179 | |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 180 | static int bt856_g_chip_ident(struct v4l2_subdev *sd, struct v4l2_dbg_chip_ident *chip) |
| 181 | { |
| 182 | struct i2c_client *client = v4l2_get_subdevdata(sd); |
| 183 | |
| 184 | return v4l2_chip_ident_i2c_client(client, chip, V4L2_IDENT_BT856, 0); |
| 185 | } |
| 186 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 187 | /* ----------------------------------------------------------------------- */ |
| 188 | |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 189 | static const struct v4l2_subdev_core_ops bt856_core_ops = { |
| 190 | .g_chip_ident = bt856_g_chip_ident, |
| 191 | .init = bt856_init, |
| 192 | }; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 193 | |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 194 | static const struct v4l2_subdev_video_ops bt856_video_ops = { |
| 195 | .s_std_output = bt856_s_std_output, |
| 196 | .s_routing = bt856_s_routing, |
| 197 | }; |
| 198 | |
| 199 | static const struct v4l2_subdev_ops bt856_ops = { |
| 200 | .core = &bt856_core_ops, |
| 201 | .video = &bt856_video_ops, |
| 202 | }; |
| 203 | |
| 204 | /* ----------------------------------------------------------------------- */ |
Mauro Carvalho Chehab | d56410e | 2006-03-25 09:19:53 -0300 | [diff] [blame] | 205 | |
Hans Verkuil | a8c26df | 2008-09-07 07:59:35 -0300 | [diff] [blame] | 206 | static int bt856_probe(struct i2c_client *client, |
| 207 | const struct i2c_device_id *id) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 208 | { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 209 | struct bt856 *encoder; |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 210 | struct v4l2_subdev *sd; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 211 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 212 | /* Check if the adapter supports the needed features */ |
Hans Verkuil | a8c26df | 2008-09-07 07:59:35 -0300 | [diff] [blame] | 213 | if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_BYTE_DATA)) |
| 214 | return -ENODEV; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 215 | |
Hans Verkuil | a8c26df | 2008-09-07 07:59:35 -0300 | [diff] [blame] | 216 | v4l_info(client, "chip found @ 0x%x (%s)\n", |
| 217 | client->addr << 1, client->adapter->name); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 218 | |
Panagiotis Issaris | 7408187 | 2006-01-11 19:40:56 -0200 | [diff] [blame] | 219 | encoder = kzalloc(sizeof(struct bt856), GFP_KERNEL); |
Hans Verkuil | a8c26df | 2008-09-07 07:59:35 -0300 | [diff] [blame] | 220 | if (encoder == NULL) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 221 | return -ENOMEM; |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 222 | sd = &encoder->sd; |
| 223 | v4l2_i2c_subdev_init(sd, client, &bt856_ops); |
Hans Verkuil | 107063c | 2009-02-18 17:26:06 -0300 | [diff] [blame] | 224 | encoder->norm = V4L2_STD_NTSC; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 225 | |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 226 | bt856_write(encoder, 0xdc, 0x18); |
| 227 | bt856_write(encoder, 0xda, 0); |
| 228 | bt856_write(encoder, 0xde, 0); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 229 | |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 230 | bt856_setbit(encoder, 0xdc, 3, 1); |
| 231 | /*bt856_setbit(encoder, 0xdc, 6, 0);*/ |
| 232 | bt856_setbit(encoder, 0xdc, 4, 1); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 233 | |
Hans Verkuil | 107063c | 2009-02-18 17:26:06 -0300 | [diff] [blame] | 234 | if (encoder->norm & V4L2_STD_NTSC) |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 235 | bt856_setbit(encoder, 0xdc, 2, 0); |
Hans Verkuil | 107063c | 2009-02-18 17:26:06 -0300 | [diff] [blame] | 236 | else |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 237 | bt856_setbit(encoder, 0xdc, 2, 1); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 238 | |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 239 | bt856_setbit(encoder, 0xdc, 1, 1); |
| 240 | bt856_setbit(encoder, 0xde, 4, 0); |
| 241 | bt856_setbit(encoder, 0xde, 3, 1); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 242 | |
| 243 | if (debug != 0) |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 244 | bt856_dump(encoder); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 245 | return 0; |
| 246 | } |
| 247 | |
Hans Verkuil | a8c26df | 2008-09-07 07:59:35 -0300 | [diff] [blame] | 248 | static int bt856_remove(struct i2c_client *client) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 249 | { |
Hans Verkuil | a91f56e | 2009-02-19 08:54:36 -0300 | [diff] [blame] | 250 | struct v4l2_subdev *sd = i2c_get_clientdata(client); |
| 251 | |
| 252 | v4l2_device_unregister_subdev(sd); |
| 253 | kfree(to_bt856(sd)); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 254 | return 0; |
| 255 | } |
| 256 | |
Hans Verkuil | a8c26df | 2008-09-07 07:59:35 -0300 | [diff] [blame] | 257 | static const struct i2c_device_id bt856_id[] = { |
| 258 | { "bt856", 0 }, |
| 259 | { } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 260 | }; |
Hans Verkuil | a8c26df | 2008-09-07 07:59:35 -0300 | [diff] [blame] | 261 | MODULE_DEVICE_TABLE(i2c, bt856_id); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 262 | |
Hans Verkuil | 3f41720 | 2010-09-15 15:32:24 -0300 | [diff] [blame] | 263 | static struct i2c_driver bt856_driver = { |
| 264 | .driver = { |
| 265 | .owner = THIS_MODULE, |
| 266 | .name = "bt856", |
| 267 | }, |
| 268 | .probe = bt856_probe, |
| 269 | .remove = bt856_remove, |
| 270 | .id_table = bt856_id, |
Hans Verkuil | a8c26df | 2008-09-07 07:59:35 -0300 | [diff] [blame] | 271 | }; |
Hans Verkuil | 3f41720 | 2010-09-15 15:32:24 -0300 | [diff] [blame] | 272 | |
Axel Lin | c6e8d86 | 2012-02-12 06:56:32 -0300 | [diff] [blame] | 273 | module_i2c_driver(bt856_driver); |