Skip to content
Commit 3923172b authored by Phil Carmody's avatar Phil Carmody Committed by Wolfram Sang
Browse files

i2c: reduce parent checking to a NOOP in non-I2C_MUX case

In 0826374b

 - 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: default avatarPhil Carmody <phil.carmody@partner.samsung.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 82564245
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment