@@ -851,75 +851,75 @@ static ssize_t message_store(struct kobject *kobj, struct kobj_attribute *attr,
851
851
* Declare the attributes.
852
852
*/
853
853
static struct kobj_attribute keymap_attribute =
854
- __ATTR (keymap , S_IWUSR | S_IRUGO , keymap_show , keymap_store );
854
+ __ATTR_RW (keymap );
855
855
static struct kobj_attribute silent_attribute =
856
- __ATTR (silent , S_IWUGO , NULL , silent_store );
856
+ __ATTR_WO (silent );
857
857
static struct kobj_attribute synth_attribute =
858
- __ATTR (synth , S_IWUGO | S_IRUGO , synth_show , synth_store );
858
+ __ATTR_RW (synth );
859
859
static struct kobj_attribute synth_direct_attribute =
860
- __ATTR (synth_direct , S_IWUGO , NULL , synth_direct_store );
860
+ __ATTR_WO (synth_direct );
861
861
static struct kobj_attribute version_attribute =
862
862
__ATTR_RO (version );
863
863
864
864
static struct kobj_attribute delimiters_attribute =
865
- __ATTR (delimiters , S_IWUGO |S_IRUGO , punc_show , punc_store );
865
+ __ATTR (delimiters , S_IWUSR |S_IRUGO , punc_show , punc_store );
866
866
static struct kobj_attribute ex_num_attribute =
867
- __ATTR (ex_num , S_IWUGO |S_IRUGO , punc_show , punc_store );
867
+ __ATTR (ex_num , S_IWUSR |S_IRUGO , punc_show , punc_store );
868
868
static struct kobj_attribute punc_all_attribute =
869
- __ATTR (punc_all , S_IWUGO |S_IRUGO , punc_show , punc_store );
869
+ __ATTR (punc_all , S_IWUSR |S_IRUGO , punc_show , punc_store );
870
870
static struct kobj_attribute punc_most_attribute =
871
- __ATTR (punc_most , S_IWUGO |S_IRUGO , punc_show , punc_store );
871
+ __ATTR (punc_most , S_IWUSR |S_IRUGO , punc_show , punc_store );
872
872
static struct kobj_attribute punc_some_attribute =
873
- __ATTR (punc_some , S_IWUGO |S_IRUGO , punc_show , punc_store );
873
+ __ATTR (punc_some , S_IWUSR |S_IRUGO , punc_show , punc_store );
874
874
static struct kobj_attribute repeats_attribute =
875
- __ATTR (repeats , S_IWUGO |S_IRUGO , punc_show , punc_store );
875
+ __ATTR (repeats , S_IWUSR |S_IRUGO , punc_show , punc_store );
876
876
877
877
static struct kobj_attribute attrib_bleep_attribute =
878
- __ATTR (attrib_bleep , S_IWUGO |S_IRUGO , spk_var_show , spk_var_store );
878
+ __ATTR (attrib_bleep , S_IWUSR |S_IRUGO , spk_var_show , spk_var_store );
879
879
static struct kobj_attribute bell_pos_attribute =
880
- __ATTR (bell_pos , S_IWUGO |S_IRUGO , spk_var_show , spk_var_store );
880
+ __ATTR (bell_pos , S_IWUSR |S_IRUGO , spk_var_show , spk_var_store );
881
881
static struct kobj_attribute bleep_time_attribute =
882
- __ATTR (bleep_time , S_IWUGO |S_IRUGO , spk_var_show , spk_var_store );
882
+ __ATTR (bleep_time , S_IWUSR |S_IRUGO , spk_var_show , spk_var_store );
883
883
static struct kobj_attribute bleeps_attribute =
884
- __ATTR (bleeps , S_IWUGO |S_IRUGO , spk_var_show , spk_var_store );
884
+ __ATTR (bleeps , S_IWUSR |S_IRUGO , spk_var_show , spk_var_store );
885
885
static struct kobj_attribute cursor_time_attribute =
886
- __ATTR (cursor_time , S_IWUGO |S_IRUGO , spk_var_show , spk_var_store );
886
+ __ATTR (cursor_time , S_IWUSR |S_IRUGO , spk_var_show , spk_var_store );
887
887
static struct kobj_attribute key_echo_attribute =
888
- __ATTR (key_echo , S_IWUGO |S_IRUGO , spk_var_show , spk_var_store );
888
+ __ATTR (key_echo , S_IWUSR |S_IRUGO , spk_var_show , spk_var_store );
889
889
static struct kobj_attribute no_interrupt_attribute =
890
- __ATTR (no_interrupt , S_IWUGO |S_IRUGO , spk_var_show , spk_var_store );
890
+ __ATTR (no_interrupt , S_IWUSR |S_IRUGO , spk_var_show , spk_var_store );
891
891
static struct kobj_attribute punc_level_attribute =
892
- __ATTR (punc_level , S_IWUGO |S_IRUGO , spk_var_show , spk_var_store );
892
+ __ATTR (punc_level , S_IWUSR |S_IRUGO , spk_var_show , spk_var_store );
893
893
static struct kobj_attribute reading_punc_attribute =
894
- __ATTR (reading_punc , S_IWUGO |S_IRUGO , spk_var_show , spk_var_store );
894
+ __ATTR (reading_punc , S_IWUSR |S_IRUGO , spk_var_show , spk_var_store );
895
895
static struct kobj_attribute say_control_attribute =
896
- __ATTR (say_control , S_IWUGO |S_IRUGO , spk_var_show , spk_var_store );
896
+ __ATTR (say_control , S_IWUSR |S_IRUGO , spk_var_show , spk_var_store );
897
897
static struct kobj_attribute say_word_ctl_attribute =
898
- __ATTR (say_word_ctl , S_IWUGO |S_IRUGO , spk_var_show , spk_var_store );
898
+ __ATTR (say_word_ctl , S_IWUSR |S_IRUGO , spk_var_show , spk_var_store );
899
899
static struct kobj_attribute spell_delay_attribute =
900
- __ATTR (spell_delay , S_IWUGO |S_IRUGO , spk_var_show , spk_var_store );
900
+ __ATTR (spell_delay , S_IWUSR |S_IRUGO , spk_var_show , spk_var_store );
901
901
902
902
/*
903
903
* These attributes are i18n related.
904
904
*/
905
905
static struct kobj_attribute announcements_attribute =
906
- __ATTR (announcements , S_IWUGO |S_IRUGO , message_show , message_store );
906
+ __ATTR (announcements , S_IWUSR |S_IRUGO , message_show , message_store );
907
907
static struct kobj_attribute characters_attribute =
908
- __ATTR (characters , S_IWUGO |S_IRUGO , chars_chartab_show , chars_chartab_store );
908
+ __ATTR (characters , S_IWUSR |S_IRUGO , chars_chartab_show , chars_chartab_store );
909
909
static struct kobj_attribute chartab_attribute =
910
- __ATTR (chartab , S_IWUGO |S_IRUGO , chars_chartab_show , chars_chartab_store );
910
+ __ATTR (chartab , S_IWUSR |S_IRUGO , chars_chartab_show , chars_chartab_store );
911
911
static struct kobj_attribute ctl_keys_attribute =
912
- __ATTR (ctl_keys , S_IWUGO |S_IRUGO , message_show , message_store );
912
+ __ATTR (ctl_keys , S_IWUSR |S_IRUGO , message_show , message_store );
913
913
static struct kobj_attribute colors_attribute =
914
- __ATTR (colors , S_IWUGO |S_IRUGO , message_show , message_store );
914
+ __ATTR (colors , S_IWUSR |S_IRUGO , message_show , message_store );
915
915
static struct kobj_attribute formatted_attribute =
916
- __ATTR (formatted , S_IWUGO |S_IRUGO , message_show , message_store );
916
+ __ATTR (formatted , S_IWUSR |S_IRUGO , message_show , message_store );
917
917
static struct kobj_attribute function_names_attribute =
918
- __ATTR (function_names , S_IWUGO |S_IRUGO , message_show , message_store );
918
+ __ATTR (function_names , S_IWUSR |S_IRUGO , message_show , message_store );
919
919
static struct kobj_attribute key_names_attribute =
920
- __ATTR (key_names , S_IWUGO |S_IRUGO , message_show , message_store );
920
+ __ATTR (key_names , S_IWUSR |S_IRUGO , message_show , message_store );
921
921
static struct kobj_attribute states_attribute =
922
- __ATTR (states , S_IWUGO |S_IRUGO , message_show , message_store );
922
+ __ATTR (states , S_IWUSR |S_IRUGO , message_show , message_store );
923
923
924
924
/*
925
925
* Create groups of attributes so that we can create and destroy them all
0 commit comments