mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-14 18:26:38 +07:00
staging: xgifb: make RAM type tables const
RAM type tables are read-only and can be made const. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
2f0f395ef7
commit
4397c7f03b
@ -15,13 +15,13 @@
|
|||||||
|
|
||||||
#include <linux/io.h>
|
#include <linux/io.h>
|
||||||
|
|
||||||
static unsigned short XGINew_DDRDRAM_TYPE340[4][5] = {
|
static const unsigned short XGINew_DDRDRAM_TYPE340[4][5] = {
|
||||||
{ 2, 13, 9, 64, 0x45},
|
{ 2, 13, 9, 64, 0x45},
|
||||||
{ 2, 12, 9, 32, 0x35},
|
{ 2, 12, 9, 32, 0x35},
|
||||||
{ 2, 12, 8, 16, 0x31},
|
{ 2, 12, 8, 16, 0x31},
|
||||||
{ 2, 11, 8, 8, 0x21} };
|
{ 2, 11, 8, 8, 0x21} };
|
||||||
|
|
||||||
static unsigned short XGINew_DDRDRAM_TYPE20[12][5] = {
|
static const unsigned short XGINew_DDRDRAM_TYPE20[12][5] = {
|
||||||
{ 2, 14, 11, 128, 0x5D},
|
{ 2, 14, 11, 128, 0x5D},
|
||||||
{ 2, 14, 10, 64, 0x59},
|
{ 2, 14, 10, 64, 0x59},
|
||||||
{ 2, 13, 11, 64, 0x4D},
|
{ 2, 13, 11, 64, 0x4D},
|
||||||
@ -589,7 +589,7 @@ static void XGINew_SetDRAMDefaultRegister340(
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void XGINew_SetDRAMSizingType(int index,
|
static void XGINew_SetDRAMSizingType(int index,
|
||||||
unsigned short DRAMTYPE_TABLE[][5],
|
const unsigned short DRAMTYPE_TABLE[][5],
|
||||||
struct vb_device_info *pVBInfo)
|
struct vb_device_info *pVBInfo)
|
||||||
{
|
{
|
||||||
unsigned short data;
|
unsigned short data;
|
||||||
@ -601,7 +601,7 @@ static void XGINew_SetDRAMSizingType(int index,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static unsigned short XGINew_SetDRAMSizeReg(int index,
|
static unsigned short XGINew_SetDRAMSizeReg(int index,
|
||||||
unsigned short DRAMTYPE_TABLE[][5],
|
const unsigned short DRAMTYPE_TABLE[][5],
|
||||||
struct vb_device_info *pVBInfo)
|
struct vb_device_info *pVBInfo)
|
||||||
{
|
{
|
||||||
unsigned short data = 0, memsize = 0;
|
unsigned short data = 0, memsize = 0;
|
||||||
@ -645,7 +645,7 @@ static unsigned short XGINew_SetDRAMSizeReg(int index,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static unsigned short XGINew_SetDRAMSize20Reg(int index,
|
static unsigned short XGINew_SetDRAMSize20Reg(int index,
|
||||||
unsigned short DRAMTYPE_TABLE[][5],
|
const unsigned short DRAMTYPE_TABLE[][5],
|
||||||
struct vb_device_info *pVBInfo)
|
struct vb_device_info *pVBInfo)
|
||||||
{
|
{
|
||||||
unsigned short data = 0, memsize = 0;
|
unsigned short data = 0, memsize = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user