Re: [PATCH 07/12] mfd: syscon: Consider platform data a regmap config name
From: Alexander Shiyan
Date: Wed Feb 12 2014 - 02:09:54 EST
Hello.
ÐÑÐÑÐÐÐ, 11 ÑÐÐÑÐÐÑ 2014, 17:10 UTC ÐÑ Pawel Moll <pawel.moll@xxxxxxx>:
> 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@xxxxxxxxxxxxxxx>
> Cc: Lee Jones <lee.jones@xxxxxxxxxx>
> Signed-off-by: Pawel Moll <pawel.moll@xxxxxxx>
> ---
...
> 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.
---