@@ -3692,7 +3692,7 @@ DEVICE_FREQ_GROUP(freq4, 3);
36923692
36933693static ssize_t
36943694disciplining_config_read (struct file * filp , struct kobject * kobj ,
3695- struct bin_attribute * bin_attr , char * buf ,
3695+ const struct bin_attribute * bin_attr , char * buf ,
36963696 loff_t off , size_t count )
36973697{
36983698 struct ptp_ocp * bp = dev_get_drvdata (kobj_to_dev (kobj ));
@@ -3727,7 +3727,7 @@ disciplining_config_read(struct file *filp, struct kobject *kobj,
37273727
37283728static ssize_t
37293729disciplining_config_write (struct file * filp , struct kobject * kobj ,
3730- struct bin_attribute * bin_attr , char * buf ,
3730+ const struct bin_attribute * bin_attr , char * buf ,
37313731 loff_t off , size_t count )
37323732{
37333733 struct ptp_ocp * bp = dev_get_drvdata (kobj_to_dev (kobj ));
@@ -3750,11 +3750,11 @@ disciplining_config_write(struct file *filp, struct kobject *kobj,
37503750
37513751 return err ;
37523752}
3753- static BIN_ATTR_RW (disciplining_config , OCP_ART_CONFIG_SIZE ) ;
3753+ static const BIN_ATTR_RW (disciplining_config , OCP_ART_CONFIG_SIZE ) ;
37543754
37553755static ssize_t
37563756temperature_table_read (struct file * filp , struct kobject * kobj ,
3757- struct bin_attribute * bin_attr , char * buf ,
3757+ const struct bin_attribute * bin_attr , char * buf ,
37583758 loff_t off , size_t count )
37593759{
37603760 struct ptp_ocp * bp = dev_get_drvdata (kobj_to_dev (kobj ));
@@ -3789,7 +3789,7 @@ temperature_table_read(struct file *filp, struct kobject *kobj,
37893789
37903790static ssize_t
37913791temperature_table_write (struct file * filp , struct kobject * kobj ,
3792- struct bin_attribute * bin_attr , char * buf ,
3792+ const struct bin_attribute * bin_attr , char * buf ,
37933793 loff_t off , size_t count )
37943794{
37953795 struct ptp_ocp * bp = dev_get_drvdata (kobj_to_dev (kobj ));
@@ -3812,7 +3812,7 @@ temperature_table_write(struct file *filp, struct kobject *kobj,
38123812
38133813 return err ;
38143814}
3815- static BIN_ATTR_RW (temperature_table , OCP_ART_TEMP_TABLE_SIZE ) ;
3815+ static const BIN_ATTR_RW (temperature_table , OCP_ART_TEMP_TABLE_SIZE ) ;
38163816
38173817static struct attribute * fb_timecard_attrs [] = {
38183818 & dev_attr_serialnum .attr ,
@@ -3867,15 +3867,15 @@ static struct attribute *art_timecard_attrs[] = {
38673867 NULL ,
38683868};
38693869
3870- static struct bin_attribute * bin_art_timecard_attrs [] = {
3870+ static const struct bin_attribute * const bin_art_timecard_attrs [] = {
38713871 & bin_attr_disciplining_config ,
38723872 & bin_attr_temperature_table ,
38733873 NULL ,
38743874};
38753875
38763876static const struct attribute_group art_timecard_group = {
38773877 .attrs = art_timecard_attrs ,
3878- .bin_attrs = bin_art_timecard_attrs ,
3878+ .bin_attrs_new = bin_art_timecard_attrs ,
38793879};
38803880
38813881static const struct ocp_attr_group art_timecard_groups [] = {
0 commit comments