[PATCH v2 0/6] commands: implement of_compatible command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This enables scripts to do:

  if of_compatible -k radxa,rock3a radxa,rock5a ; then
    of_property -df mmc0 sd-uhs-sdr104
  fi

instead of checking $global.model. See individual patches for changelog.

Ahmad Fatoum (6):
  treewide: don't mix goto labels and statements on same line
  treewide: drop null pointer checks around of_delete_node
  commands: of_property: use new of_read_file
  commands: of_dump: remove duplicate error message
  commands: of_dump: use of_dup instead of flattening/unflattening
  commands: implement of_compatible command

 commands/Kconfig                 |  15 ++++
 commands/Makefile                |   1 +
 commands/of_compatible.c         | 124 +++++++++++++++++++++++++++++++
 commands/of_dump.c               |  28 ++-----
 commands/of_property.c           |  16 +---
 common/blspec.c                  |   3 +-
 common/state/state.c             |  15 ++--
 common/state/state_variables.c   |   9 ++-
 drivers/usb/gadget/udc/fsl_udc.c |   3 +-
 9 files changed, 168 insertions(+), 46 deletions(-)
 create mode 100644 commands/of_compatible.c

-- 
2.39.2





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux