drm/i915: Fix I2C adapter registration
authorJean Delvare <khali@linux-fr.org>
Fri, 5 Nov 2010 17:51:34 +0000 (18:51 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 9 Nov 2010 23:04:52 +0000 (23:04 +0000)
commit69669455b049c0f1f04bb306625c5d4db6838b11
tree736f897e4d390507cab67bda9337a42f58e5179e
parent3f8ff0e72d75fdbe7f2cba2c4015fd9fdd9e13fd
drm/i915: Fix I2C adapter registration

Fix many small bugs in I2C adapter registration:
* Properly reject unsupported GPIO pin.
* Fix improper use of I2C_NAME_SIZE (which is the size of
  i2c_client.name, not i2c_adapter.name.)
* Prefix adapter names with "i915" so that the user knows what the
  I2C channel is connected to.
* Fix swapped characters in the string used to name the GPIO-based
  adapter.
* Add missing comma in gmbus name table.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_i2c.c