Skip to content

Commit 3d01cb3

Browse files
authored
Fix: dual usage of symbol "x8h7_can_filter". (#13)
Once as a struct, and once as a function name.
1 parent c7fa049 commit 3d01cb3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

recipes-kernel/kernel-modules/x8h7/x8h7_can.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -783,8 +783,8 @@ static const struct net_device_ops x8h7_can_netdev_ops = {
783783

784784
/**
785785
*/
786-
static int x8h7_can_filter(struct x8h7_can_priv *priv,
787-
const char *buf, int type)
786+
static int x8h7_can_config_filter(struct x8h7_can_priv *priv,
787+
const char *buf, int type)
788788
{
789789
u32 idx;
790790
u32 id;
@@ -859,7 +859,7 @@ static ssize_t x8h7_can_sf_store(struct device *dev,
859859
struct x8h7_can_priv *priv = netdev_priv(to_net_dev(dev));
860860
int ret;
861861

862-
ret = x8h7_can_filter(priv, buf, 0);
862+
ret = x8h7_can_config_filter(priv, buf, 0);
863863
if (ret) {
864864
DBG_ERROR("set filter\n");
865865
return -1;
@@ -899,7 +899,7 @@ static ssize_t x8h7_can_ef_store(struct device *dev,
899899
struct x8h7_can_priv *priv = netdev_priv(to_net_dev(dev));
900900
int ret;
901901

902-
ret = x8h7_can_filter(priv, buf, 1);
902+
ret = x8h7_can_config_filter(priv, buf, 1);
903903
if (ret) {
904904
DBG_ERROR("set filter\n");
905905
return -1;

0 commit comments

Comments
 (0)