mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
staging: dgnc: Add const qualifier to struct declaration.
Const qualifier added to struct declaration to avoid data overwrite during runtime and improve security. Signed-off-by: Elise Lennion <elise.lennion@gmail.com> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6aab2d7eac
commit
d44e0e5ddc
2 changed files with 2 additions and 2 deletions
|
|
@ -93,7 +93,7 @@ struct board_id {
|
|||
unsigned int is_pci_express;
|
||||
};
|
||||
|
||||
static struct board_id dgnc_ids[] = {
|
||||
static const struct board_id dgnc_ids[] = {
|
||||
{ PCI_DEVICE_CLASSIC_4_PCI_NAME, 4, 0 },
|
||||
{ PCI_DEVICE_CLASSIC_4_422_PCI_NAME, 4, 0 },
|
||||
{ PCI_DEVICE_CLASSIC_8_PCI_NAME, 8, 0 },
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ static unsigned char *dgnc_TmpWriteBuf;
|
|||
/*
|
||||
* Default transparent print information.
|
||||
*/
|
||||
static struct digi_t dgnc_digi_init = {
|
||||
static const struct digi_t dgnc_digi_init = {
|
||||
.digi_flags = DIGI_COOK, /* Flags */
|
||||
.digi_maxcps = 100, /* Max CPS */
|
||||
.digi_maxchar = 50, /* Max chars in print queue */
|
||||
|
|
|
|||
Loading…
Reference in a new issue