DM: I2C: Reduce overhead when used with OF_PLATDATA
authorAdam Ford <aford173@gmail.com>
Tue, 21 Aug 2018 01:24:34 +0000 (20:24 -0500)
committerTom Rini <trini@konsulko.com>
Wed, 12 Sep 2018 01:38:42 +0000 (21:38 -0400)
commitafa8cdd60755784a74ec4683106a2abe718f9623
tree042280e4dfade4b33c2a5ca5127eec53af72bac4
parente5f7a261db470e97f2018cdff41407af6353d969
DM: I2C: Reduce overhead when used with OF_PLATDATA

Platforms with limited resources in SPL may enably OF_PLATDATA,
this limits some of the library functions and cannot extract data
from the device tree.  This patch adds additional wrappers around
these functions to only allow them when OF_CONTROL is enabled and
OF_PLATDATA is not.

Signed-off-by: Adam Ford <aford173@gmail.com>
drivers/i2c/i2c-uclass.c