Skip to content

Commit edfd39f

Browse files
agnersLorenzo Pieralisi
authored andcommitted
PCI: dwc: layerscape: Constify driver data
Constify driver data since they do not get changed at runtime. Signed-off-by: Stefan Agner <stefan@agner.ch> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
1 parent 3f7ccee commit edfd39f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/pci/controller/dwc/pci-layerscape.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -222,36 +222,36 @@ static const struct dw_pcie_ops dw_ls_pcie_ops = {
222222
.link_up = ls_pcie_link_up,
223223
};
224224

225-
static struct ls_pcie_drvdata ls1021_drvdata = {
225+
static const struct ls_pcie_drvdata ls1021_drvdata = {
226226
.ops = &ls1021_pcie_host_ops,
227227
.dw_pcie_ops = &dw_ls1021_pcie_ops,
228228
};
229229

230-
static struct ls_pcie_drvdata ls1043_drvdata = {
230+
static const struct ls_pcie_drvdata ls1043_drvdata = {
231231
.lut_offset = 0x10000,
232232
.ltssm_shift = 24,
233233
.lut_dbg = 0x7fc,
234234
.ops = &ls_pcie_host_ops,
235235
.dw_pcie_ops = &dw_ls_pcie_ops,
236236
};
237237

238-
static struct ls_pcie_drvdata ls1046_drvdata = {
238+
static const struct ls_pcie_drvdata ls1046_drvdata = {
239239
.lut_offset = 0x80000,
240240
.ltssm_shift = 24,
241241
.lut_dbg = 0x407fc,
242242
.ops = &ls_pcie_host_ops,
243243
.dw_pcie_ops = &dw_ls_pcie_ops,
244244
};
245245

246-
static struct ls_pcie_drvdata ls2080_drvdata = {
246+
static const struct ls_pcie_drvdata ls2080_drvdata = {
247247
.lut_offset = 0x80000,
248248
.ltssm_shift = 0,
249249
.lut_dbg = 0x7fc,
250250
.ops = &ls_pcie_host_ops,
251251
.dw_pcie_ops = &dw_ls_pcie_ops,
252252
};
253253

254-
static struct ls_pcie_drvdata ls2088_drvdata = {
254+
static const struct ls_pcie_drvdata ls2088_drvdata = {
255255
.lut_offset = 0x80000,
256256
.ltssm_shift = 0,
257257
.lut_dbg = 0x407fc,

0 commit comments

Comments
 (0)