mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
block: Constify disk_type
The variable 'disk_type' is never modified so constify it. Signed-off-by: Bart Van Assche <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Cc: Hannes Reinecke <[email protected]> Cc: Omar Sandoval <[email protected]> Cc: Ming Lei <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
7b6078146c
commit
edf8ff5588
1 changed files with 2 additions and 2 deletions
|
|
@ -36,7 +36,7 @@ struct kobject *block_depr;
|
|||
static DEFINE_SPINLOCK(ext_devt_lock);
|
||||
static DEFINE_IDR(ext_devt_idr);
|
||||
|
||||
static struct device_type disk_type;
|
||||
static const struct device_type disk_type;
|
||||
|
||||
static void disk_check_events(struct disk_events *ev,
|
||||
unsigned int *clearing_ptr);
|
||||
|
|
@ -1183,7 +1183,7 @@ static char *block_devnode(struct device *dev, umode_t *mode,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
static struct device_type disk_type = {
|
||||
static const struct device_type disk_type = {
|
||||
.name = "disk",
|
||||
.groups = disk_attr_groups,
|
||||
.release = disk_release,
|
||||
|
|
|
|||
Loading…
Reference in a new issue