mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
pinctrl: rk805: Constify rk805_gpio_cfgs
Mark pin_cfg as const, allowing the compiler to put the struct in .rodata instead of .data. Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com> Link: https://lore.kernel.org/r/20200425203813.6442-1-rikard.falkeborn@gmail.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
committed by
Linus Walleij
parent
7740dda5b4
commit
8068071c09
@@ -73,7 +73,7 @@ struct rk805_pctrl_info {
|
|||||||
int num_pin_groups;
|
int num_pin_groups;
|
||||||
const struct pinctrl_pin_desc *pins;
|
const struct pinctrl_pin_desc *pins;
|
||||||
unsigned int num_pins;
|
unsigned int num_pins;
|
||||||
struct rk805_pin_config *pin_cfg;
|
const struct rk805_pin_config *pin_cfg;
|
||||||
};
|
};
|
||||||
|
|
||||||
enum rk805_pinmux_option {
|
enum rk805_pinmux_option {
|
||||||
@@ -121,7 +121,7 @@ static const struct rk805_pin_group rk805_pin_groups[] = {
|
|||||||
#define RK805_GPIO0_VAL_MSK BIT(0)
|
#define RK805_GPIO0_VAL_MSK BIT(0)
|
||||||
#define RK805_GPIO1_VAL_MSK BIT(1)
|
#define RK805_GPIO1_VAL_MSK BIT(1)
|
||||||
|
|
||||||
static struct rk805_pin_config rk805_gpio_cfgs[] = {
|
static const struct rk805_pin_config rk805_gpio_cfgs[] = {
|
||||||
{
|
{
|
||||||
.reg = RK805_OUT_REG,
|
.reg = RK805_OUT_REG,
|
||||||
.val_msk = RK805_GPIO0_VAL_MSK,
|
.val_msk = RK805_GPIO0_VAL_MSK,
|
||||||
|
Reference in New Issue
Block a user