mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 13:22:57 +00:00
drm/imx: make static read-only array channel_offsets const
The static array channel_offsets is read-only so it make sense to make it const. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Link: https://lore.kernel.org/r/20220123223417.6244-1-colin.i.king@gmail.com
This commit is contained in:
parent
344c50dd49
commit
090fd63d99
1 changed files with 3 additions and 2 deletions
|
@ -344,8 +344,9 @@ int ipu_dc_init(struct ipu_soc *ipu, struct device *dev,
|
||||||
unsigned long base, unsigned long template_base)
|
unsigned long base, unsigned long template_base)
|
||||||
{
|
{
|
||||||
struct ipu_dc_priv *priv;
|
struct ipu_dc_priv *priv;
|
||||||
static int channel_offsets[] = { 0, 0x1c, 0x38, 0x54, 0x58, 0x5c,
|
static const int channel_offsets[] = {
|
||||||
0x78, 0, 0x94, 0xb4};
|
0, 0x1c, 0x38, 0x54, 0x58, 0x5c, 0x78, 0, 0x94, 0xb4
|
||||||
|
};
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
|
priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
|
||||||
|
|
Loading…
Reference in a new issue