i2c: Use rwsem instead of mutex for board info
commitf18c41daea14baee11252da268cdf5dcd57c7c10
authorRodolfo Giometti <giometti@linux.it>
Fri, 19 Jun 2009 14:58:20 +0000 (19 16:58 +0200)
committerJean Delvare <khali@linux-fr.org>
Fri, 19 Jun 2009 14:58:20 +0000 (19 16:58 +0200)
treeec42ed7000fa64925db3cd596737bd54d9fa71ca
parent99cd8e25875a109455b709b5a41d4891b8d8e58e
i2c: Use rwsem instead of mutex for board info

By using rwsem we can easily manage recursive calls of
i2c_scan_static_board_info() function without breaking the locking.

Signed-off-by: Rodolfo Giometti <giometti@linux.it>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/i2c-boardinfo.c
drivers/i2c/i2c-core.c
drivers/i2c/i2c-core.h