summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/core/include
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2013-02-16 13:19:18 +1000
committerBen Skeggs <bskeggs@redhat.com>2013-02-20 16:00:59 +1000
commit548ddb6dec9964fc9c0812409f3e105b07324c4f (patch)
tree9deda89de5a975ffe2bdf52ec76b052185016ef9 /drivers/gpu/drm/nouveau/core/include
parent31a34aa421032cfe3b2b892c929e7539e747a7ac (diff)
downloadop-kernel-dev-548ddb6dec9964fc9c0812409f3e105b07324c4f.zip
op-kernel-dev-548ddb6dec9964fc9c0812409f3e105b07324c4f.tar.gz
drm/nouveau/i2c: extend type to 16-bits, add lookup-by-type function
For off-chip transmitters we won't necessarily have an i2c table entry to lookup, but we can do it instead by encoding the type to include the extdev type and looking that up instead. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/core/include')
-rw-r--r--drivers/gpu/drm/nouveau/core/include/subdev/i2c.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/core/include/subdev/i2c.h b/drivers/gpu/drm/nouveau/core/include/subdev/i2c.h
index d2c067a..a804317 100644
--- a/drivers/gpu/drm/nouveau/core/include/subdev/i2c.h
+++ b/drivers/gpu/drm/nouveau/core/include/subdev/i2c.h
@@ -16,7 +16,7 @@ struct nouveau_i2c_port {
struct i2c_algo_bit_data bit;
struct list_head head;
u8 index;
- u8 type;
+ u16 type;
u32 dcb;
u32 drive;
u32 sense;
@@ -29,6 +29,7 @@ struct nouveau_i2c {
struct nouveau_subdev base;
struct nouveau_i2c_port *(*find)(struct nouveau_i2c *, u8 index);
+ struct nouveau_i2c_port *(*find_type)(struct nouveau_i2c *, u16 type);
int (*identify)(struct nouveau_i2c *, int index,
const char *what, struct i2c_board_info *,
bool (*match)(struct nouveau_i2c_port *,
OpenPOWER on IntegriCloud