]> git.karo-electronics.de Git - linux-beck.git/commit
i2c-s3c2410: Rework device type handling
authorKarol Lewandowski <k.lewandowsk@samsung.com>
Mon, 23 Apr 2012 16:24:00 +0000 (18:24 +0200)
committerWolfram Sang <w.sang@pengutronix.de>
Sat, 12 May 2012 12:28:16 +0000 (14:28 +0200)
commit27452498a6ed507154616d59e6bd41a96ec291c8
tree49dac279c7f65dd19711d3563a7f425f174d2c79
parent951eef3955117cfaf3eafea601bf06ba2090ca0f
i2c-s3c2410: Rework device type handling

Reorganize driver a bit to better handle device tree-based systems:

 - move machine type to driver's private structure instead of
   quering platform device variants in runtime

 - replace s3c24xx_i2c_type enum with unsigned int that holds
   bitmask with revision-specific quirks

Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/i2c/busses/i2c-s3c2410.c