i2c: xiic: hide OF related data for COMPILE_TEST
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sat, 11 Mar 2023 11:16:56 +0000 (12:16 +0100)
committerWolfram Sang <wsa@kernel.org>
Wed, 29 Mar 2023 18:54:40 +0000 (20:54 +0200)
commit58c043d988d8dbf928f4d779d40d4b256242678d
tree7ec1f15d96fa4a9c8ab3464e5649e43777f279f8
parent79a1725028e0ba9982e31b3b8820a92cce704416
i2c: xiic: hide OF related data for COMPILE_TEST

The driver can be compile tested with !CONFIG_OF making certain data
unused:

  drivers/i2c/busses/i2c-xiic.c:1202:39: error: ‘xiic_2_00’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-xiic.c