]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: Simplify i2c_parent_is_i2c_adapter
authorJean Delvare <khali@linux-fr.org>
Sun, 24 Oct 2010 16:16:57 +0000 (18:16 +0200)
committerJean Delvare <khali@endymion.delvare>
Sun, 24 Oct 2010 16:16:57 +0000 (18:16 +0200)
commitbd4dec79dd021ab1a17f3fc27e4d2fb2742b264d
tree287fbd7e600b91623bf5b9c0be301d479eceb56b
parentfb9e1f01d0ed0908c7e8b20d95b36d77b31ef53f
i2c: Simplify i2c_parent_is_i2c_adapter

Only i2c devices can have their type set to i2c_adapter_type, so
testing the bus type is redundant.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Michael Lawnick <ml.lawnick@gmx.de>
include/linux/i2c.h