s390/cio: add const to bin_attribute structures
Add const to bin_attribute structures as they are only passed to the functions device_{remove/create}_bin_file. The corresponding arguments are of type const, so declare the structures to be const. Cross compiled for s390 architecture. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
c7e85ae5ea
commit
ac34bbc360
@ -143,7 +143,7 @@ static ssize_t chp_measurement_chars_read(struct file *filp,
|
|||||||
sizeof(chp->cmg_chars));
|
sizeof(chp->cmg_chars));
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct bin_attribute chp_measurement_chars_attr = {
|
static const struct bin_attribute chp_measurement_chars_attr = {
|
||||||
.attr = {
|
.attr = {
|
||||||
.name = "measurement_chars",
|
.name = "measurement_chars",
|
||||||
.mode = S_IRUSR,
|
.mode = S_IRUSR,
|
||||||
@ -197,7 +197,7 @@ static ssize_t chp_measurement_read(struct file *filp, struct kobject *kobj,
|
|||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct bin_attribute chp_measurement_attr = {
|
static const struct bin_attribute chp_measurement_attr = {
|
||||||
.attr = {
|
.attr = {
|
||||||
.name = "measurement",
|
.name = "measurement",
|
||||||
.mode = S_IRUSR,
|
.mode = S_IRUSR,
|
||||||
|
Loading…
Reference in New Issue
Block a user