]> Git Repo - J-u-boot.git/blobdiff - cmd/button.c
Merge patch series "Add OPP_LOW support for J7200"
[J-u-boot.git] / cmd / button.c
index 64c5a8fa046727f34e2e1c68e00a3b1d96b17c9a..3e6db3f5b8eb5cef87031b399eae51d7a55466a6 100644 (file)
@@ -5,7 +5,6 @@
  * Based on led.c
  */
 
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <button.h>
@@ -37,7 +36,7 @@ static int list_buttons(void)
        for (uclass_find_first_device(UCLASS_BUTTON, &dev);
             dev;
             uclass_find_next_device(&dev)) {
-               struct button_uc_plat *plat = dev_get_uclass_platdata(dev);
+               struct button_uc_plat *plat = dev_get_uclass_plat(dev);
 
                if (!plat->label)
                        continue;
This page took 0.023296 seconds and 4 git commands to generate.