mirror of
https://github.com/torvalds/linux.git
synced 2024-09-20 15:03:04 +00:00
mfd: lpc_ich: Mark *_gpio_offsets data with const
There is no reason why the GPIO resource offsets should not be const. Mark them accordingly and update a qualifier in struct lpc_ich_gpio_info definition. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20231024160650.3898959-1-andriy.shevchenko@linux.intel.com Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
parent
272f99edab
commit
2b48182244
|
@ -139,7 +139,7 @@ struct lpc_ich_gpio_info {
|
|||
size_t nr_devices;
|
||||
struct resource **resources;
|
||||
size_t nr_resources;
|
||||
resource_size_t *offsets;
|
||||
const resource_size_t *offsets;
|
||||
};
|
||||
|
||||
#define APL_GPIO_NORTH 0
|
||||
|
@ -151,7 +151,7 @@ struct lpc_ich_gpio_info {
|
|||
#define APL_GPIO_NR_RESOURCES 4
|
||||
|
||||
/* Offset data for Apollo Lake GPIO controllers */
|
||||
static resource_size_t apl_gpio_offsets[APL_GPIO_NR_RESOURCES] = {
|
||||
static const resource_size_t apl_gpio_offsets[APL_GPIO_NR_RESOURCES] = {
|
||||
[APL_GPIO_NORTH] = 0xc50000,
|
||||
[APL_GPIO_NORTHWEST] = 0xc40000,
|
||||
[APL_GPIO_WEST] = 0xc70000,
|
||||
|
@ -233,7 +233,7 @@ static const struct lpc_ich_gpio_info apl_gpio_info = {
|
|||
#define DNV_GPIO_NR_RESOURCES 2
|
||||
|
||||
/* Offset data for Denverton GPIO controllers */
|
||||
static resource_size_t dnv_gpio_offsets[DNV_GPIO_NR_RESOURCES] = {
|
||||
static const resource_size_t dnv_gpio_offsets[DNV_GPIO_NR_RESOURCES] = {
|
||||
[DNV_GPIO_NORTH] = 0xc20000,
|
||||
[DNV_GPIO_SOUTH] = 0xc50000,
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user