serial: imx: introduce serial_imx_enable_wakeup()
authorEduardo Valentin <edubezval@gmail.com>
Tue, 11 Aug 2015 17:21:21 +0000 (10:21 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Aug 2015 00:23:25 +0000 (17:23 -0700)
commit189550b8644ef5d00d3b744f7fd423cce2d7c9ec
tree3bc513308eacc5b551620bdc6cb4ec069542dc9a
parent9e7b399d6528eac33a6fbfceb2b92af209c3454d
serial: imx: introduce serial_imx_enable_wakeup()

This change is a code reorganization. Here we introduce
serial_imx_enable_wakeup() helper function to do
the job of configuring and preparing wakeup sources
on imx serial device. The idea is to allow other
parts of the code to call this function whenever
the device is known to go to idle.

Cc: Fabio Estevam <festevam@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jiri Slaby <jslaby@suse.com>
Cc: linux-serial@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/boot/dts/Makefile
drivers/tty/serial/imx.c