nanohub: create new display state query function

Create a new display state query function regardless of dipslay control
ownership.

Bug: 299561981
Test: cat /sys/devices/virtual/nanohub/nanohub_comms/display_state
Test: cat /sys/.../display_state_no_check
Signed-off-by: William Tai <williamtai@google.com>
(cherry picked from https://partner-android-review.googlesource.com/q/commit:bd0d7bdde68da6ff8b46bb85758a30e1809164e9)
Merged-In: I70b3d29fdd110b3845d5f78a1bd8a4d88c994dad
Change-Id: I70b3d29fdd110b3845d5f78a1bd8a4d88c994dad
4 files changed
tree: ce9a4855fd31a2dc8ea29c6abad79ea8a310795b
  1. bl_nxp.c
  2. bl_nxp.h
  3. bl_st.c
  4. bl_st.h
  5. comms.c
  6. comms.h
  7. display.c
  8. display.h
  9. Kbuild
  10. Kconfig
  11. main.c
  12. main.h
  13. Makefile
  14. nanohub.h
  15. nanohub_exports.h
  16. OWNERS
  17. README.md
  18. spi.c
  19. spi.h
README.md

devicetree for Eos

The code in this branch was imported from:

https://partner-android.git.corp.google.com/kernel/private/exynos-google-cw-extra/drivers/+/a30521d7964b098374a11cf534c57c84368f3c2d/sensorhub/nanohub

which is a monorepo containing all out-of-tree kernel modules for r11. To import just the nanohub commits, andrewevans@ did the following:

Make patches of all the commits to nanohub

cd /path/to/r11-kernel/private/exynos-google-cw-extra/drivers/sensorhub/nanohub
git format-patch --relative=sensorhub/nanohub -o /tmp/nanohub --root HEAD .

--relative rewrites paths to be rooted at the path specified, effectively deleting that path prefix. Changes to files outside this path are omitted from the output.

--root walks history starting from the oldest reachable ancestor, i.e. the first commit. Future imports should instead specify the range of commits since the last import.

Switch to nanohub module repo

cd /path/to/eos-kernel/private/google-modules/nanohub

Apply patches to Google Eos devicetree repo

git am /tmp/devicetree/*.patch

Push the resulting changes

git push -o skip-validation -f -u partner HEAD:refs/heads/android-msm-eos-5.4