Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7e85ae5 authored by Bhumika Goyal's avatar Bhumika Goyal Committed by Martin Schwidefsky
Browse files

s390/sclp: add const to bin_attribute structure



Declare bin_attribute structure as const as it is only passed as an
argument to the function sysfs_create_bin_file. This argument is of
type const, so declare the structure as const.

Cross compiled for s390 architecture.

Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 83a88424
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -135,7 +135,7 @@ static ssize_t sysfs_ofb_data_write(struct file *filp, struct kobject *kobj,
	return rc ?: count;
}

static struct bin_attribute ofb_bin_attr = {
static const struct bin_attribute ofb_bin_attr = {
	.attr = {
		.name = "event_data",
		.mode = S_IWUSR,