From 645e752c5a84baeb21015cdc85fc05b7d16312c8 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Sat, 11 May 2024 01:13:52 +0000 Subject: [PATCH] disable i2c1 --- kernel/sound/soc/codecs/tlv320adcx140.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kernel/sound/soc/codecs/tlv320adcx140.c b/kernel/sound/soc/codecs/tlv320adcx140.c index 53a8024..a6241a0 100644 --- a/kernel/sound/soc/codecs/tlv320adcx140.c +++ b/kernel/sound/soc/codecs/tlv320adcx140.c @@ -870,7 +870,7 @@ gpio_count = device_property_count_u32(adcx140->dev, "ti,gpio-config"); - if (gpio_count == 0) + if (gpio_count <= 0) return 0; if (gpio_count != ADCX140_NUM_GPIO_CFGS) -- Gitblit v1.6.2