Source
1
+
// SPDX-License-Identifier: GPL-2.0-only
1
2
/*
2
3
* drivers/hwmon/wm831x-hwmon.c - Wolfson Microelectronics WM831x PMIC
3
4
* hardware monitoring features.
4
5
*
5
6
* Copyright (C) 2009 Wolfson Microelectronics plc
6
-
*
7
-
* This program is free software; you can redistribute it and/or modify it
8
-
* under the terms of the GNU General Public License v2 as published by the
9
-
* Free Software Foundation.
10
-
*
11
-
* This program is distributed in the hope that it will be useful, but WITHOUT
12
-
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
-
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14
-
* more details.
15
-
*
16
-
* You should have received a copy of the GNU General Public License along with
17
-
* this program; if not, write to the Free Software Foundation, Inc.,
18
-
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
19
7
*/
20
8
21
9
#include <linux/kernel.h>
22
10
#include <linux/module.h>
23
11
#include <linux/platform_device.h>
24
12
#include <linux/err.h>
25
13
#include <linux/hwmon.h>
26
14
#include <linux/hwmon-sysfs.h>
27
15
#include <linux/slab.h>
28
16