File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -683,11 +683,13 @@ static int adm1275_probe(struct i2c_client *client,
683
683
tindex = 3 ;
684
684
685
685
info -> func [0 ] |= PMBUS_HAVE_PIN | PMBUS_HAVE_STATUS_INPUT |
686
- PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT ;
686
+ PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT |
687
+ PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP ;
687
688
688
- /* Enable VOUT if not enabled (it is disabled by default) */
689
- if (!(config & ADM1278_VOUT_EN )) {
690
- config |= ADM1278_VOUT_EN ;
689
+ /* Enable VOUT & TEMP1 if not enabled (disabled by default) */
690
+ if ((config & (ADM1278_VOUT_EN | ADM1278_TEMP1_EN )) !=
691
+ (ADM1278_VOUT_EN | ADM1278_TEMP1_EN )) {
692
+ config |= ADM1278_VOUT_EN | ADM1278_TEMP1_EN ;
691
693
ret = i2c_smbus_write_byte_data (client ,
692
694
ADM1275_PMON_CONFIG ,
693
695
config );
@@ -698,9 +700,6 @@ static int adm1275_probe(struct i2c_client *client,
698
700
}
699
701
}
700
702
701
- if (config & ADM1278_TEMP1_EN )
702
- info -> func [0 ] |=
703
- PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP ;
704
703
if (config & ADM1278_VIN_EN )
705
704
info -> func [0 ] |= PMBUS_HAVE_VIN ;
706
705
break ;
You can’t perform that action at this time.
0 commit comments