Commit 6839fed
nvmem: core: remove global nvmem_cells_group
nvmem_cells_groups is a global variable that is also mutated.
This is complicated and error-prone.
Instead use a normal stack variable.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20240705074852.423202-11-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 6188f23 commit 6839fed
1 file changed
Lines changed: 10 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | 360 | | |
366 | 361 | | |
367 | 362 | | |
| |||
424 | 419 | | |
425 | 420 | | |
426 | 421 | | |
427 | | - | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
428 | 425 | | |
| 426 | + | |
429 | 427 | | |
430 | 428 | | |
431 | 429 | | |
432 | 430 | | |
433 | 431 | | |
434 | | - | |
435 | | - | |
| 432 | + | |
436 | 433 | | |
437 | | - | |
438 | 434 | | |
439 | 435 | | |
440 | 436 | | |
441 | | - | |
442 | | - | |
443 | | - | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
444 | 440 | | |
445 | 441 | | |
446 | 442 | | |
| |||
467 | 463 | | |
468 | 464 | | |
469 | 465 | | |
470 | | - | |
| 466 | + | |
471 | 467 | | |
472 | 468 | | |
473 | 469 | | |
474 | | - | |
475 | | - | |
476 | | - | |
| 470 | + | |
477 | 471 | | |
478 | 472 | | |
479 | 473 | | |
| |||
0 commit comments