Commit e159079
mtd: spi-nor: simplify spi_nor_get_flash_info()
Rework spi_nor_get_flash_info() to make it look more straight forward
and esp. don't return early. The latter is a preparation to check for
deprecated flashes.
Signed-off-by: Michael Walle <[email protected]>
Reviewed-by: Pratyush Yadav <[email protected]>
Signed-off-by: Pratyush Yadav <[email protected]>
Link: https://lore.kernel.org/r/[email protected]1 parent 2d95d13 commit e159079
1 file changed
+14
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3298 | 3298 | | |
3299 | 3299 | | |
3300 | 3300 | | |
3301 | | - | |
3302 | | - | |
3303 | | - | |
3304 | | - | |
3305 | 3301 | | |
3306 | | - | |
3307 | | - | |
| 3302 | + | |
| 3303 | + | |
| 3304 | + | |
3308 | 3305 | | |
3309 | | - | |
| 3306 | + | |
3310 | 3307 | | |
3311 | 3308 | | |
3312 | 3309 | | |
3313 | | - | |
| 3310 | + | |
3314 | 3311 | | |
3315 | | - | |
3316 | | - | |
3317 | | - | |
3318 | | - | |
3319 | | - | |
3320 | | - | |
3321 | | - | |
3322 | | - | |
| 3312 | + | |
| 3313 | + | |
| 3314 | + | |
| 3315 | + | |
| 3316 | + | |
| 3317 | + | |
3323 | 3318 | | |
3324 | 3319 | | |
3325 | | - | |
3326 | | - | |
| 3320 | + | |
| 3321 | + | |
| 3322 | + | |
3327 | 3323 | | |
3328 | 3324 | | |
3329 | 3325 | | |
| |||
0 commit comments