@@ -597,31 +597,31 @@ static umode_t fan_dev_is_visible(struct kobject *kobj,
597
597
return a -> mode ;
598
598
}
599
599
600
- static SENSOR_DEVICE_ATTR (pwm0 , 0644 ,
601
- show_pwm , set_pwm , 0 ) ;
602
600
static SENSOR_DEVICE_ATTR (pwm1 , 0644 ,
603
- show_pwm , set_pwm , 1 ) ;
601
+ show_pwm , set_pwm , 0 ) ;
604
602
static SENSOR_DEVICE_ATTR (pwm2 , 0644 ,
605
- show_pwm , set_pwm , 2 ) ;
603
+ show_pwm , set_pwm , 1 ) ;
606
604
static SENSOR_DEVICE_ATTR (pwm3 , 0644 ,
607
- show_pwm , set_pwm , 3 ) ;
605
+ show_pwm , set_pwm , 2 ) ;
608
606
static SENSOR_DEVICE_ATTR (pwm4 , 0644 ,
609
- show_pwm , set_pwm , 4 ) ;
607
+ show_pwm , set_pwm , 3 ) ;
610
608
static SENSOR_DEVICE_ATTR (pwm5 , 0644 ,
611
- show_pwm , set_pwm , 5 ) ;
609
+ show_pwm , set_pwm , 4 ) ;
612
610
static SENSOR_DEVICE_ATTR (pwm6 , 0644 ,
613
- show_pwm , set_pwm , 6 ) ;
611
+ show_pwm , set_pwm , 5 ) ;
614
612
static SENSOR_DEVICE_ATTR (pwm7 , 0644 ,
613
+ show_pwm , set_pwm , 6 ) ;
614
+ static SENSOR_DEVICE_ATTR (pwm8 , 0644 ,
615
615
show_pwm , set_pwm , 7 ) ;
616
616
static struct attribute * pwm_dev_attrs [] = {
617
- & sensor_dev_attr_pwm0 .dev_attr .attr ,
618
617
& sensor_dev_attr_pwm1 .dev_attr .attr ,
619
618
& sensor_dev_attr_pwm2 .dev_attr .attr ,
620
619
& sensor_dev_attr_pwm3 .dev_attr .attr ,
621
620
& sensor_dev_attr_pwm4 .dev_attr .attr ,
622
621
& sensor_dev_attr_pwm5 .dev_attr .attr ,
623
622
& sensor_dev_attr_pwm6 .dev_attr .attr ,
624
623
& sensor_dev_attr_pwm7 .dev_attr .attr ,
624
+ & sensor_dev_attr_pwm8 .dev_attr .attr ,
625
625
NULL ,
626
626
};
627
627
@@ -630,40 +630,39 @@ static const struct attribute_group pwm_dev_group = {
630
630
.is_visible = pwm_is_visible ,
631
631
};
632
632
633
- static SENSOR_DEVICE_ATTR (fan0_input , 0444 ,
634
- show_rpm , NULL, 0 ) ;
635
633
static SENSOR_DEVICE_ATTR (fan1_input , 0444 ,
636
- show_rpm , NULL, 1 ) ;
634
+ show_rpm , NULL, 0 ) ;
637
635
static SENSOR_DEVICE_ATTR (fan2_input , 0444 ,
638
- show_rpm , NULL, 2 ) ;
636
+ show_rpm , NULL, 1 ) ;
639
637
static SENSOR_DEVICE_ATTR (fan3_input , 0444 ,
640
- show_rpm , NULL, 3 ) ;
638
+ show_rpm , NULL, 2 ) ;
641
639
static SENSOR_DEVICE_ATTR (fan4_input , 0444 ,
642
- show_rpm , NULL, 4 ) ;
640
+ show_rpm , NULL, 3 ) ;
643
641
static SENSOR_DEVICE_ATTR (fan5_input , 0444 ,
644
- show_rpm , NULL, 5 ) ;
642
+ show_rpm , NULL, 4 ) ;
645
643
static SENSOR_DEVICE_ATTR (fan6_input , 0444 ,
646
- show_rpm , NULL, 6 ) ;
644
+ show_rpm , NULL, 5 ) ;
647
645
static SENSOR_DEVICE_ATTR (fan7_input , 0444 ,
648
- show_rpm , NULL, 7 ) ;
646
+ show_rpm , NULL, 6 ) ;
649
647
static SENSOR_DEVICE_ATTR (fan8_input , 0444 ,
650
- show_rpm , NULL, 8 ) ;
648
+ show_rpm , NULL, 7 ) ;
651
649
static SENSOR_DEVICE_ATTR (fan9_input , 0444 ,
652
- show_rpm , NULL, 9 ) ;
650
+ show_rpm , NULL, 8 ) ;
653
651
static SENSOR_DEVICE_ATTR (fan10_input , 0444 ,
654
- show_rpm , NULL, 10 ) ;
652
+ show_rpm , NULL, 9 ) ;
655
653
static SENSOR_DEVICE_ATTR (fan11_input , 0444 ,
656
- show_rpm , NULL, 11 ) ;
654
+ show_rpm , NULL, 10 ) ;
657
655
static SENSOR_DEVICE_ATTR (fan12_input , 0444 ,
658
- show_rpm , NULL, 12 ) ;
656
+ show_rpm , NULL, 11 ) ;
659
657
static SENSOR_DEVICE_ATTR (fan13_input , 0444 ,
660
- show_rpm , NULL, 13 ) ;
658
+ show_rpm , NULL, 12 ) ;
661
659
static SENSOR_DEVICE_ATTR (fan14_input , 0444 ,
662
- show_rpm , NULL, 14 ) ;
660
+ show_rpm , NULL, 13 ) ;
663
661
static SENSOR_DEVICE_ATTR (fan15_input , 0444 ,
662
+ show_rpm , NULL, 14 ) ;
663
+ static SENSOR_DEVICE_ATTR (fan16_input , 0444 ,
664
664
show_rpm , NULL, 15 ) ;
665
665
static struct attribute * fan_dev_attrs [] = {
666
- & sensor_dev_attr_fan0_input .dev_attr .attr ,
667
666
& sensor_dev_attr_fan1_input .dev_attr .attr ,
668
667
& sensor_dev_attr_fan2_input .dev_attr .attr ,
669
668
& sensor_dev_attr_fan3_input .dev_attr .attr ,
@@ -679,6 +678,7 @@ static struct attribute *fan_dev_attrs[] = {
679
678
& sensor_dev_attr_fan13_input .dev_attr .attr ,
680
679
& sensor_dev_attr_fan14_input .dev_attr .attr ,
681
680
& sensor_dev_attr_fan15_input .dev_attr .attr ,
681
+ & sensor_dev_attr_fan16_input .dev_attr .attr ,
682
682
NULL
683
683
};
684
684
0 commit comments