mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
macintosh/mediabay: add a const qualifier
This prepares *of_device_id.data becoming const. Without this change the following warning would occur: drivers/macintosh/mediabay.c: In function 'media_bay_attach': drivers/macintosh/mediabay.c:589:11: warning: assignment discards 'const' qualifier from pointer target type [enabled by default] Acked-by: Benjamin Herrenschmidt <[email protected]> Signed-off-by: Uwe Kleine-König <[email protected]>
This commit is contained in:
parent
efc9b736c4
commit
519a651098
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ struct media_bay_info {
|
|||
int value_count;
|
||||
int timer;
|
||||
struct macio_dev *mdev;
|
||||
struct mb_ops* ops;
|
||||
const struct mb_ops* ops;
|
||||
int index;
|
||||
int cached_gpio;
|
||||
int sleeping;
|
||||
|
|
|
|||
Loading…
Reference in a new issue