analogdevicesinc / no-OS

Software drivers in C for systems without an operating system
http://analogdevicesinc.github.io/no-OS/
Other
927 stars 1.65k forks source link

drivers: digital-io: max22196 : Add support for MAX22194 #2097

Closed RaduSabau1 closed 7 months ago

RaduSabau1 commented 7 months ago

Pull Request Description

MAX22194 is the same as MAX22196 except it doesn't have the 5 to 8 channels and channel counting functionality, therefore the first commit handles the compatibility of the driver for MAX22194 as well as the MAX22196 using a chip_id enum inside of the device descriptor as well as the initialization parameter.

The second commit only uses the new approach for avoiding memory leaks at initialization of the driver.

The third commit updates the README.rst file so any MAX22194 extra related documentation is included and therefore be found in the no-OS repository.

PR Type

PR Checklist

RaduSabau1 commented 7 months ago

V2

RaduSabau1 commented 7 months ago

V3

RaduSabau1 commented 7 months ago

V4

RaduSabau1 commented 7 months ago

V5

RaduSabau1 commented 7 months ago

V6

RaduSabau1 commented 7 months ago

V7