Hello.

Вторник, 11 февраля 2014, 17:10 UTC от Pawel Moll <[email protected]>:
> 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 <[email protected]>
> Cc: Lee Jones <[email protected]>
> Signed-off-by: Pawel Moll <[email protected]>
> ---
...
> 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.
---

Reply via email to