mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
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 <yidong.zhang@amlogic.com>
This commit is contained in:
committed by
gerrit autosubmit
parent
c41964a9b0
commit
fc5692f51b
Vendored
-8
@@ -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
|
||||
|
||||
@@ -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!");
|
||||
|
||||
Reference in New Issue
Block a user