From fc5692f51bf71e35ce4ff54ebf8516fe4e24285c Mon Sep 17 00:00:00 2001 From: yidong zhang Date: Thu, 18 Sep 2025 13:25:06 +0800 Subject: [PATCH] raman_ai: fix aw21036 and nt8918 compile error for linux [1/1] PD#SWPL-211345 Problem: raman_ai external driver compile error for linux. Solution: fix compile error on kernel 5.15 Verify: raman_ai Change-Id: I940b4a133541978ba461529679ea5ee26f43ef2a Signed-off-by: yidong zhang --- drivers/external/leds/leds-aw21036.h | 8 -------- sound/soc/codecs/amlogic/ntp8918.c | 7 ------- 2 files changed, 15 deletions(-) diff --git a/drivers/external/leds/leds-aw21036.h b/drivers/external/leds/leds-aw21036.h index 61d53a665..bb91701d5 100644 --- a/drivers/external/leds/leds-aw21036.h +++ b/drivers/external/leds/leds-aw21036.h @@ -76,14 +76,6 @@ static u8 tmp_col[37]={ \ 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,\ 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,\ }; - -static u8 tmp_ledon[10]={ \ - 0x68,0xdd,0xf5,0x68,0xdd,0xf5,0x68,0xdd,0xf5,\ -}; -static u8 tmp_ledoff[10]={ \ - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\ -}; - //#define NO_DIRECTION_CORRECT //default mode:OFF all leds diff --git a/sound/soc/codecs/amlogic/ntp8918.c b/sound/soc/codecs/amlogic/ntp8918.c index 2a8444c64..3ffbe7f9e 100644 --- a/sound/soc/codecs/amlogic/ntp8918.c +++ b/sound/soc/codecs/amlogic/ntp8918.c @@ -610,8 +610,6 @@ static int ntp8918_parse_dt(struct ntp8918_priv *ntp8918, struct device *dev) NTP_DEBUG("IS_ERR: %d IS_ERR_OR_NULL: %d", IS_ERR(ntp8918->pdata->pd_gpio), IS_ERR_OR_NULL(ntp8918->pdata->pd_gpio)); if (IS_ERR_OR_NULL(ntp8918->pdata->pd_gpio)) { - NTP_DEBUG("Failed to allocate reset gpio : %ld, try the legacy mode again", - PTR_ERR(ntp8918->pdata->pd_gpio)); pd_pin = of_get_named_gpio(dev->of_node, "pd_pin", 0); if (pd_pin < 0) { NTP_ERR("fail to get PD pin from dts!"); @@ -639,9 +637,6 @@ static int ntp8918_parse_dt(struct ntp8918_priv *ntp8918, struct device *dev) NTP_DEBUG("IS_ERR: %d IS_ERR_OR_NULL: %d", IS_ERR(ntp8918->pdata->power_gpio), IS_ERR_OR_NULL(ntp8918->pdata->power_gpio)); if (IS_ERR_OR_NULL(ntp8918->pdata->power_gpio)) { - NTP_DEBUG("Failed to allocate power gpio : %ld, try the legacy mode again", - PTR_ERR(ntp8918->pdata->power_gpio)); - /* control ntp8918 module vcc power. */ power_pin = of_get_named_gpio(dev->of_node, "power_pin", 0); if (power_pin < 0) { NTP_ERR("fail to get power pin from dts!, no need power_pin"); @@ -669,8 +664,6 @@ static int ntp8918_parse_dt(struct ntp8918_priv *ntp8918, struct device *dev) NTP_DEBUG("IS_ERR: %d IS_ERR_OR_NULL:%d", IS_ERR(ntp8918->pdata->reset_gpio), IS_ERR_OR_NULL(ntp8918->pdata->reset_gpio)); if (IS_ERR_OR_NULL(ntp8918->pdata->reset_gpio)) { - NTP_DEBUG("Failed to allocate reset gpio : %ld, try the legacy mode again", - PTR_ERR(ntp8918->pdata->reset_gpio)); reset_pin = of_get_named_gpio(dev->of_node, "reset_pin", 0); if (reset_pin < 0) { NTP_ERR("fail to get reset pin from dts!");