dm: Use access methods for dev/uclass private data
Most drivers use these access methods but a few do not. Update them. In some cases the access is not permitted, so mark those with a FIXME tag for the maintainer to check. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Pratyush Yadav <p.yadav@ti.com>
This commit is contained in:
@@ -34,7 +34,7 @@ struct altera_timer_plat {
|
||||
|
||||
static u64 altera_timer_get_count(struct udevice *dev)
|
||||
{
|
||||
struct altera_timer_plat *plat = dev->plat;
|
||||
struct altera_timer_plat *plat = dev_get_plat(dev);
|
||||
struct altera_timer_regs *const regs = plat->regs;
|
||||
u32 val;
|
||||
|
||||
@@ -49,7 +49,7 @@ static u64 altera_timer_get_count(struct udevice *dev)
|
||||
|
||||
static int altera_timer_probe(struct udevice *dev)
|
||||
{
|
||||
struct altera_timer_plat *plat = dev->plat;
|
||||
struct altera_timer_plat *plat = dev_get_plat(dev);
|
||||
struct altera_timer_regs *const regs = plat->regs;
|
||||
|
||||
writel(0, ®s->status);
|
||||
|
||||
Reference in New Issue
Block a user