]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: slot-gpio: Allocate GPIO labels dynamically
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 12 Nov 2018 14:12:30 +0000 (15:12 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Dec 2018 07:26:24 +0000 (08:26 +0100)
commitf4f04ce70462dc560d6065c0c1dfabb87b0a3d42
tree62833238cf947ab6e74e27b09c7768f1a14712c2
parent0559fba7aa1bea7992db7f6faa6d469c1466c287
mmc: slot-gpio: Allocate GPIO labels dynamically

The use of string pointers in the MMC slot GPIO context is
pretty dubious, allocating some 2*len extra bytes for each
label of the ro and wp pins.

Tidy this up using kasprintf() with dynamic allocation of
labels for these strings.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/slot-gpio.c