commit | b1789b793eb4627928f55a6acea8da7c25e5c6b4 | [log] [tgz] |
---|---|---|
author | Mathieu Poirier <mathieu.poirier@linaro.org> | Tue May 03 11:33:46 2016 -0600 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue May 03 14:59:30 2016 -0700 |
tree | 63d4327bdd58e2094892ea2c3f367a8d02e50380 | |
parent | 358f42184e97f9a216b927a5a744597b98e0eee1 [diff] |
coresight: tmc: re-implementing tmc_read_prepare/unprepare() functions In their current implementation the tmc_read_prepare/unprepare() are a lump of if/else that is difficult to read. This patch is alleviating that by using a switch statement. The latter also allows for a better control on the error path. Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>