| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * 3-axis magnetometer driver supporting following I2C Bosch-Sensortec chips: |
|---|
| 3 | 4 | * - BMC150 |
|---|
| .. | .. |
|---|
| 5 | 6 | * - BMM150 |
|---|
| 6 | 7 | * |
|---|
| 7 | 8 | * 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. |
|---|
| 17 | 9 | */ |
|---|
| 18 | 10 | #include <linux/device.h> |
|---|
| 19 | 11 | #include <linux/mod_devicetable.h> |
|---|
| .. | .. |
|---|
| 66 | 58 | static const struct of_device_id bmc150_magn_of_match[] = { |
|---|
| 67 | 59 | { .compatible = "bosch,bmc150_magn" }, |
|---|
| 68 | 60 | { .compatible = "bosch,bmc156_magn" }, |
|---|
| 69 | | - { .compatible = "bosch,bmm150_magn" }, |
|---|
| 61 | + { .compatible = "bosch,bmm150_magn" }, /* deprecated compatible */ |
|---|
| 62 | + { .compatible = "bosch,bmm150" }, |
|---|
| 70 | 63 | { } |
|---|
| 71 | 64 | }; |
|---|
| 72 | 65 | MODULE_DEVICE_TABLE(of, bmc150_magn_of_match); |
|---|