From 9370bb92b2d16684ee45cf24e879c93c509162da Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Thu, 19 Dec 2024 01:47:39 +0000 Subject: [PATCH] add wifi6 8852be driver --- kernel/drivers/iio/humidity/htu21.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/kernel/drivers/iio/humidity/htu21.c b/kernel/drivers/iio/humidity/htu21.c index f5a2701..36df2a1 100644 --- a/kernel/drivers/iio/humidity/htu21.c +++ b/kernel/drivers/iio/humidity/htu21.c @@ -1,11 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0-only /* * htu21.c - Support for Measurement-Specialties * htu21 temperature & humidity sensor * and humidity part of MS8607 sensor * * Copyright (c) 2014 Measurement-Specialties - * - * Licensed under the GPL-2. * * (7-bit I2C slave address 0x40) * @@ -20,6 +19,7 @@ #include <linux/kernel.h> #include <linux/stat.h> #include <linux/module.h> +#include <linux/mod_devicetable.h> #include <linux/iio/iio.h> #include <linux/iio/sysfs.h> @@ -205,7 +205,6 @@ indio_dev->info = &htu21_info; indio_dev->name = id->name; - indio_dev->dev.parent = &client->dev; indio_dev->modes = INDIO_DIRECT_MODE; if (id->driver_data == MS8607) { @@ -249,7 +248,7 @@ .id_table = htu21_id, .driver = { .name = "htu21", - .of_match_table = of_match_ptr(htu21_of_match), + .of_match_table = htu21_of_match, }, }; -- Gitblit v1.6.2