lkml.org 
[lkml]   [2014]   [Feb]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH 07/12] mfd: syscon: Consider platf orm data a regmap config name
    Date
    Hello.

    Вторник, 11 февраля 2014, 17:10 UTC от Pawel Moll <pawel.moll@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@linux.intel.com>
    > Cc: Lee Jones <lee.jones@linaro.org>
    > Signed-off-by: Pawel Moll <pawel.moll@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.
    ---
    \
     
     \ /
      Last update: 2014-02-12 09:01    [W:2.678 / U:0.844 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site