s5j: add exception handling codes in spi and i2c drivers
authorWonsang Ryou <wonsang.yoo@samsung.com>
Wed, 2 Aug 2017 08:18:52 +0000 (17:18 +0900)
committerEunBong Song <eunb.song@samsung.com>
Wed, 30 Aug 2017 04:15:48 +0000 (21:15 -0700)
commita6475f34624acccddd7abcd13ac69e7110bc0db7
treeeae5e0afa0437b1c6bf20f8065b9109749a9526e
parenta75fc68611f9d3bd30cde833abf95a15edf3bc19
s5j: add exception handling codes in spi and i2c drivers

This patch adds the codes in order to check if the port number is valid
in spi and i2c drivers. If the port is invalid, the exception handling
code returns NULL.

Change-Id: I9c5360ce58cd0c3778e048377ea92472ac31e21b
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
os/arch/arm/src/s5j/s5j_i2c.c
os/arch/arm/src/s5j/s5j_spi.c