diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2012-01-05 19:05:20 +0000 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2012-01-09 17:08:13 +0000 |
commit | 18e83e4cd144e30fb38bf1f714914182c6c8bced (patch) | |
tree | 3b9d93550cecbd127d2c00e50c9c373df8675aa0 /drivers/net/ethernet/sfc/selftest.c | |
parent | 0beaca2ca0b3c12dabab046f1541b09179ec449c (diff) | |
download | op-kernel-dev-18e83e4cd144e30fb38bf1f714914182c6c8bced.zip op-kernel-dev-18e83e4cd144e30fb38bf1f714914182c6c8bced.tar.gz |
sfc: Const-qualify static data as appropriate, partly prompted by checkpatch
Fix the following warnings:
WARNING: struct dev_pm_ops should normally be const
WARNING: static const char * array should probably be static const char * const
Similarly const-qualify struct i2c_board_info, struct i2c_algo_bit_data,
struct efx_ethtool_stat, struct efx_mtd_ops and struct siena_nvram_type_info.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc/selftest.c')
-rw-r--r-- | drivers/net/ethernet/sfc/selftest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sfc/selftest.c b/drivers/net/ethernet/sfc/selftest.c index fc62fe2..17ff9b3 100644 --- a/drivers/net/ethernet/sfc/selftest.c +++ b/drivers/net/ethernet/sfc/selftest.c @@ -50,7 +50,7 @@ static const char payload_msg[] = /* Interrupt mode names */ static const unsigned int efx_interrupt_mode_max = EFX_INT_MODE_MAX; -static const char *efx_interrupt_mode_names[] = { +static const char *const efx_interrupt_mode_names[] = { [EFX_INT_MODE_MSIX] = "MSI-X", [EFX_INT_MODE_MSI] = "MSI", [EFX_INT_MODE_LEGACY] = "legacy", |