[PATCH V3 03/18] coresight: tmc: re-implementing tmc_read_prepare/unprepare() functions

2016-04-22 Thread Mathieu Poirier
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

[PATCH V3 03/18] coresight: tmc: re-implementing tmc_read_prepare/unprepare() functions

2016-04-22 Thread Mathieu Poirier
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 Reviewed-by: Suzuki K