]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: mcp23s08: spi: Fix regmap allocation for mcp23s18
authorJason Kridner <jkridner@gmail.com>
Fri, 11 Jan 2019 15:02:13 +0000 (10:02 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 21 Jan 2019 13:18:15 +0000 (14:18 +0100)
commit8bca4019228d7bcbaa623879a59572c723052dc6
tree93d688a7efcaa032c972a33fa363767f0d49a748
parent53f5f89b9c7749026ccb5bfcb68e28f4e95b008a
pinctrl: mcp23s08: spi: Fix regmap allocation for mcp23s18

Fixes issue created by 0057a68b3b540775eefa7578019611432c0f3ab6.

It wasn't possible for one_regmap_config to be non-NULL at the point
it was tested for mcp23s18 devices.

Applied the same pattern of allocating one_regmap_config using
devm_kmemdump() and then initializing the local regmap structure
from that.

Signed-off-by: Jason Kridner <jdk@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-mcp23s08.c