Refactoring the handle structure 91/134591/5
authorjino.cho <jino.cho@samsung.com>
Mon, 19 Jun 2017 09:34:35 +0000 (18:34 +0900)
committerjino.cho <jino.cho@samsung.com>
Tue, 20 Jun 2017 06:17:24 +0000 (15:17 +0900)
commit8864bb2b2a72a61cf822a30af3997a01af99225b
tree51c5308f6162cbf60a0477c29049c63e5bd6303c
parent83ff2b7f45a4211df9003f4140e9615c7435cf59
Refactoring the handle structure

This patch unifies the structures of the device handles.
It was extracted duplicated code into one method and enhanced the
handle validation.

Change-Id: I8e91ddc5c687fce15d64598da134d3c5d8c6ea5a
Signed-off-by: jino.cho <jino.cho@samsung.com>
14 files changed:
src/daemon/peripheral_bus.c
src/daemon/peripheral_bus.h
src/daemon/peripheral_bus_gpio.c
src/daemon/peripheral_bus_gpio.h
src/daemon/peripheral_bus_i2c.c
src/daemon/peripheral_bus_i2c.h
src/daemon/peripheral_bus_pwm.c
src/daemon/peripheral_bus_pwm.h
src/daemon/peripheral_bus_spi.c
src/daemon/peripheral_bus_spi.h
src/daemon/peripheral_bus_uart.c
src/daemon/peripheral_bus_uart.h
src/daemon/peripheral_bus_util.c
src/daemon/peripheral_bus_util.h