]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: reduce parent checking to a NOOP in non-I2C_MUX case
authorPhil Carmody <phil.carmody@partner.samsung.com>
Wed, 26 Jun 2013 07:56:35 +0000 (10:56 +0300)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 7 Aug 2013 14:58:08 +0000 (16:58 +0200)
commitf4e279024ff3add42bad24ac0ce43929a1df3ce1
treeb7f9ec98c0f30b21c7cf08874ae2f2fce2309f66
parentd69f85593aba54b78fff6684ef5a09d1f4c392ed
i2c: reduce parent checking to a NOOP in non-I2C_MUX case

In 61ddf1f - i2c: Multiplexed I2C bus core support
core i2c code increased in size and complexity even when I2C_MUX
wasn't selected.

Turning this check into a constant NULL in the n case lets the
client functions in be simplified too, not needing to include
never-called calls to the mux-specific helpers.

Signed-off-by: Phil Carmody <phil.carmody@partner.samsung.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
include/linux/i2c.h