Skip to content

Commit

Permalink
macintosh/mediabay: make data used as *of_device_id.data const
Browse files Browse the repository at this point in the history
Since of_device_id.data is declared as a pointer to const data a few
more consts can be added in this driver.

[ukl: split Arnd's patch by driver]

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
  • Loading branch information
Arnd Bergmann authored and Uwe Kleine-König committed Sep 11, 2012
1 parent 1d10a65 commit 306e352
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/macintosh/mediabay.c
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ static int media_bay_resume(struct macio_dev *mdev)

/* Definitions of "ops" structures.
*/
static struct mb_ops ohare_mb_ops = {
static const struct mb_ops ohare_mb_ops = {
.name = "Ohare",
.content = ohare_mb_content,
.power = ohare_mb_power,
Expand All @@ -678,7 +678,7 @@ static struct mb_ops ohare_mb_ops = {
.un_reset_ide = ohare_mb_un_reset_ide,
};

static struct mb_ops heathrow_mb_ops = {
static const struct mb_ops heathrow_mb_ops = {
.name = "Heathrow",
.content = heathrow_mb_content,
.power = heathrow_mb_power,
Expand All @@ -687,7 +687,7 @@ static struct mb_ops heathrow_mb_ops = {
.un_reset_ide = heathrow_mb_un_reset_ide,
};

static struct mb_ops keylargo_mb_ops = {
static const struct mb_ops keylargo_mb_ops = {
.name = "KeyLargo",
.init = keylargo_mb_init,
.content = keylargo_mb_content,
Expand Down

0 comments on commit 306e352

Please sign in to comment.