hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/include/linux/pmbus.h
....@@ -1,25 +1,14 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Hardware monitoring driver for PMBus devices
34 *
45 * Copyright (c) 2010, 2011 Ericsson AB.
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program; if not, write to the Free Software
18
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
196 */
207
218 #ifndef _PMBUS_H_
229 #define _PMBUS_H_
10
+
11
+#include <linux/bits.h>
2312
2413 /* flags */
2514
....@@ -36,7 +25,14 @@
3625 * communication errors for no explicable reason. For such chips, checking
3726 * the status register must be disabled.
3827 */
39
-#define PMBUS_SKIP_STATUS_CHECK (1 << 0)
28
+#define PMBUS_SKIP_STATUS_CHECK BIT(0)
29
+
30
+/*
31
+ * PMBUS_WRITE_PROTECTED
32
+ * Set if the chip is write protected and write protection is not determined
33
+ * by the standard WRITE_PROTECT command.
34
+ */
35
+#define PMBUS_WRITE_PROTECTED BIT(1)
4036
4137 struct pmbus_platform_data {
4238 u32 flags; /* Device specific flags */