Re: [PATCH 07/12] mfd: syscon: Consider platform data a regmap config name
Alexander Shiyan
shc_work at mail.ru
Wed Feb 12 02:09:42 EST 2014
Hello.
Вторник, 11 февраля 2014, 17:10 UTC от Pawel Moll <pawel.moll at arm.com>:
> Use the device platform data as a regmap config
> name. This is particularly useful in the regmap
> debugfs when there is more than one syscon device
> registered, to distinguish the register blocks.
>
> Cc: Samuel Ortiz <sameo at linux.intel.com>
> Cc: Lee Jones <lee.jones at linaro.org>
> Signed-off-by: Pawel Moll <pawel.moll at arm.com>
> ---
...
> syscon_regmap_config.max_register = res->end - res->start - 3;
> + syscon_regmap_config.name = dev_get_platdata(&pdev->dev);
Is dev_name(&pdev->dev) can be used for such purpose?
Thanks.
---
More information about the linux-arm-kernel
mailing list