lkml.org 
[lkml]   [2021]   [Jan]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v9 0/8] AMD Sensor Fusion Hub driver refactored
Date
From: Richard Neumann <mail@richard-neumann.de>

This patch series contains a refactored version of AMD's Sensor Fusion Hub driver.

Core changes are:

* Flattened out source code structure.
* Strict separation of driver parts:
- PCI device driver
- Platform driver
- HID low-level driver
* Implemented HID low-level driver as per API description with appropriate functions:
- start / stop
- open / close
- parse
- raw_request
* Added meta information to the respective HID devices.
- sensor type
- bus type
- physical device name

Richard Neumann (8):
Updated MAINTAINERS
Updated documentation
Updated Kconfig
Updated Makefile
Refactored HID descriptor and report generators.
Refactored HID LL driver.
Refactored platform driver
Refactored PCIe driver

Documentation/hid/amd-sfh-hid.rst | 275 +++++++-------
MAINTAINERS | 1 +
drivers/hid/amd-sfh-hid/Kconfig | 4 +-
drivers/hid/amd-sfh-hid/Makefile | 14 +-
...eport_desc.h => amd-sfh-hid-descriptors.h} | 51 ++-
drivers/hid/amd-sfh-hid/amd-sfh-hid-ll-drv.c | 175 +++++++++
drivers/hid/amd-sfh-hid/amd-sfh-hid-ll-drv.h | 41 ++
drivers/hid/amd-sfh-hid/amd-sfh-hid-reports.c | 354 ++++++++++++++++++
drivers/hid/amd-sfh-hid/amd-sfh-hid-reports.h | 102 +++++
drivers/hid/amd-sfh-hid/amd-sfh-pci.c | 226 +++++++++++
drivers/hid/amd-sfh-hid/amd-sfh-pci.h | 112 ++++++
drivers/hid/amd-sfh-hid/amd-sfh-plat.c | 327 ++++++++++++++++
drivers/hid/amd-sfh-hid/amd-sfh-plat.h | 38 ++
drivers/hid/amd-sfh-hid/amd_sfh_client.c | 246 ------------
drivers/hid/amd-sfh-hid/amd_sfh_hid.c | 174 ---------
drivers/hid/amd-sfh-hid/amd_sfh_hid.h | 67 ----
drivers/hid/amd-sfh-hid/amd_sfh_pcie.c | 152 --------
drivers/hid/amd-sfh-hid/amd_sfh_pcie.h | 79 ----
.../hid_descriptor/amd_sfh_hid_desc.c | 224 -----------
.../hid_descriptor/amd_sfh_hid_desc.h | 107 ------
20 files changed, 1539 insertions(+), 1230 deletions(-)
rename drivers/hid/amd-sfh-hid/{hid_descriptor/amd_sfh_hid_report_desc.h => amd-sfh-hid-descriptors.h} (95%)
create mode 100644 drivers/hid/amd-sfh-hid/amd-sfh-hid-ll-drv.c
create mode 100644 drivers/hid/amd-sfh-hid/amd-sfh-hid-ll-drv.h
create mode 100644 drivers/hid/amd-sfh-hid/amd-sfh-hid-reports.c
create mode 100644 drivers/hid/amd-sfh-hid/amd-sfh-hid-reports.h
create mode 100644 drivers/hid/amd-sfh-hid/amd-sfh-pci.c
create mode 100644 drivers/hid/amd-sfh-hid/amd-sfh-pci.h
create mode 100644 drivers/hid/amd-sfh-hid/amd-sfh-plat.c
create mode 100644 drivers/hid/amd-sfh-hid/amd-sfh-plat.h
delete mode 100644 drivers/hid/amd-sfh-hid/amd_sfh_client.c
delete mode 100644 drivers/hid/amd-sfh-hid/amd_sfh_hid.c
delete mode 100644 drivers/hid/amd-sfh-hid/amd_sfh_hid.h
delete mode 100644 drivers/hid/amd-sfh-hid/amd_sfh_pcie.c
delete mode 100644 drivers/hid/amd-sfh-hid/amd_sfh_pcie.h
delete mode 100644 drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c
delete mode 100644 drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.h

--
2.30.0

\
 
 \ /
  Last update: 2021-01-23 14:51    [W:0.065 / U:4.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site