diff options
author | Guillaume LECERF <glecerf@gmail.com> | 2010-04-24 11:58:07 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-05-13 20:08:19 -0400 |
commit | 58598861227877bb481b9035d2a07283577a2274 (patch) | |
tree | 36640c0a8a9459c6d1d15f024128e1f0286bb0cd /drivers/mtd/chips | |
parent | 54b93a49d8dd90dfb658f21a3316527fe6195106 (diff) |
mtd: cfi_probe: use P_ID_* definitions instead of hardcoded values
Use P_ID_* definitions already in include/linux/mtd/cfi.h instead of the
hardcoded values. Make the code more readable.
Signed-off-by: Guillaume LECERF <glecerf@gmail.com>
Reviewed-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/chips')
-rw-r--r-- | drivers/mtd/chips/gen_probe.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/mtd/chips/gen_probe.c b/drivers/mtd/chips/gen_probe.c index fcc1bc02c8a2..1d56887c839b 100644 --- a/drivers/mtd/chips/gen_probe.c +++ b/drivers/mtd/chips/gen_probe.c | |||
@@ -241,17 +241,17 @@ static struct mtd_info *check_cmd_set(struct map_info *map, int primary) | |||
241 | /* We need these for the !CONFIG_MODULES case, | 241 | /* We need these for the !CONFIG_MODULES case, |
242 | because symbol_get() doesn't work there */ | 242 | because symbol_get() doesn't work there */ |
243 | #ifdef CONFIG_MTD_CFI_INTELEXT | 243 | #ifdef CONFIG_MTD_CFI_INTELEXT |
244 | case 0x0001: | 244 | case P_ID_INTEL_EXT: |
245 | case 0x0003: | 245 | case P_ID_INTEL_STD: |
246 | case 0x0200: | 246 | case P_ID_INTEL_PERFORMANCE: |
247 | return cfi_cmdset_0001(map, primary); | 247 | return cfi_cmdset_0001(map, primary); |
248 | #endif | 248 | #endif |
249 | #ifdef CONFIG_MTD_CFI_AMDSTD | 249 | #ifdef CONFIG_MTD_CFI_AMDSTD |
250 | case 0x0002: | 250 | case P_ID_AMD_STD: |
251 | return cfi_cmdset_0002(map, primary); | 251 | return cfi_cmdset_0002(map, primary); |
252 | #endif | 252 | #endif |
253 | #ifdef CONFIG_MTD_CFI_STAA | 253 | #ifdef CONFIG_MTD_CFI_STAA |
254 | case 0x0020: | 254 | case P_ID_ST_ADV: |
255 | return cfi_cmdset_0020(map, primary); | 255 | return cfi_cmdset_0020(map, primary); |
256 | #endif | 256 | #endif |
257 | default: | 257 | default: |