build/patch/kernel/archive/sunxi-6.2/patches.megous/iio-af8133j-Avoid-compiler-warning.patch

27 lines
819 B
Diff

From f3ad010a055aa89f278829e233b69fa5d8c49520 Mon Sep 17 00:00:00 2001
From: Ondrej Jirman <megi@xff.cz>
Date: Sat, 29 Oct 2022 23:15:32 +0200
Subject: [PATCH 387/391] iio: af8133j: Avoid compiler warning
Signed-off-by: Ondrej Jirman <megi@xff.cz>
---
drivers/iio/magnetometer/af8133j.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/magnetometer/af8133j.c b/drivers/iio/magnetometer/af8133j.c
index 7a0e16fa0..4a2407cab 100644
--- a/drivers/iio/magnetometer/af8133j.c
+++ b/drivers/iio/magnetometer/af8133j.c
@@ -171,7 +171,7 @@ static int af8133j_power_up(struct af8133j_data *data)
static void af8133j_power_down(struct af8133j_data *data)
{
- struct device *dev = &data->client->dev;
+// struct device *dev = &data->client->dev;
if (!data->powered)
return;
--
2.35.3