|
12 | 12 | #include <linux/pmbus.h>
|
13 | 13 | #include "pmbus.h"
|
14 | 14 |
|
15 |
| -#define BPARS600_MFR_VIN_MIN 0xa0 |
16 |
| -#define BPARS600_MFR_VIN_MAX 0xa1 |
17 |
| -#define BPARS600_MFR_IIN_MAX 0xa2 |
18 |
| -#define BPARS600_MFR_PIN_MAX 0xa3 |
19 |
| -#define BPARS600_MFR_VOUT_MIN 0xa4 |
20 |
| -#define BPARS600_MFR_VOUT_MAX 0xa5 |
21 |
| -#define BPARS600_MFR_IOUT_MAX 0xa6 |
22 |
| -#define BPARS600_MFR_POUT_MAX 0xa7 |
23 |
| - |
24 | 15 | enum chips { bpa_rs600, bpd_rs600 };
|
25 | 16 |
|
26 | 17 | static int bpa_rs600_read_byte_data(struct i2c_client *client, int page, int reg)
|
@@ -83,29 +74,13 @@ static int bpa_rs600_read_word_data(struct i2c_client *client, int page, int pha
|
83 | 74 |
|
84 | 75 | switch (reg) {
|
85 | 76 | case PMBUS_VIN_UV_WARN_LIMIT:
|
86 |
| - ret = pmbus_read_word_data(client, 0, 0xff, BPARS600_MFR_VIN_MIN); |
87 |
| - break; |
88 | 77 | case PMBUS_VIN_OV_WARN_LIMIT:
|
89 |
| - ret = pmbus_read_word_data(client, 0, 0xff, BPARS600_MFR_VIN_MAX); |
90 |
| - break; |
91 | 78 | case PMBUS_VOUT_UV_WARN_LIMIT:
|
92 |
| - ret = pmbus_read_word_data(client, 0, 0xff, BPARS600_MFR_VOUT_MIN); |
93 |
| - break; |
94 | 79 | case PMBUS_VOUT_OV_WARN_LIMIT:
|
95 |
| - ret = pmbus_read_word_data(client, 0, 0xff, BPARS600_MFR_VOUT_MAX); |
96 |
| - break; |
97 | 80 | case PMBUS_IIN_OC_WARN_LIMIT:
|
98 |
| - ret = pmbus_read_word_data(client, 0, 0xff, BPARS600_MFR_IIN_MAX); |
99 |
| - break; |
100 | 81 | case PMBUS_IOUT_OC_WARN_LIMIT:
|
101 |
| - ret = pmbus_read_word_data(client, 0, 0xff, BPARS600_MFR_IOUT_MAX); |
102 |
| - break; |
103 | 82 | case PMBUS_PIN_OP_WARN_LIMIT:
|
104 |
| - ret = pmbus_read_word_data(client, 0, 0xff, BPARS600_MFR_PIN_MAX); |
105 |
| - break; |
106 | 83 | case PMBUS_POUT_OP_WARN_LIMIT:
|
107 |
| - ret = pmbus_read_word_data(client, 0, 0xff, BPARS600_MFR_POUT_MAX); |
108 |
| - break; |
109 | 84 | case PMBUS_VIN_UV_FAULT_LIMIT:
|
110 | 85 | case PMBUS_VIN_OV_FAULT_LIMIT:
|
111 | 86 | case PMBUS_VOUT_UV_FAULT_LIMIT:
|
|
0 commit comments