forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/drivers/iio/magnetometer/bmc150_magn_i2c.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * 3-axis magnetometer driver supporting following I2C Bosch-Sensortec chips:
34 * - BMC150
....@@ -5,15 +6,6 @@
56 * - BMM150
67 *
78 * Copyright (c) 2016, Intel Corporation.
8
- *
9
- * This program is free software; you can redistribute it and/or modify it
10
- * under the terms and conditions of the GNU General Public License,
11
- * version 2, as published by the Free Software Foundation.
12
- *
13
- * This program is distributed in the hope it will be useful, but WITHOUT
14
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16
- * more details.
179 */
1810 #include <linux/device.h>
1911 #include <linux/mod_devicetable.h>
....@@ -66,7 +58,8 @@
6658 static const struct of_device_id bmc150_magn_of_match[] = {
6759 { .compatible = "bosch,bmc150_magn" },
6860 { .compatible = "bosch,bmc156_magn" },
69
- { .compatible = "bosch,bmm150_magn" },
61
+ { .compatible = "bosch,bmm150_magn" }, /* deprecated compatible */
62
+ { .compatible = "bosch,bmm150" },
7063 { }
7164 };
7265 MODULE_DEVICE_TABLE(of, bmc150_magn_of_match);