diff options
| author | Ajay Gupta <ajayg@nvidia.com> | 2019-06-07 09:34:19 -0700 |
|---|---|---|
| committer | Wolfram Sang <wsa@the-dreams.de> | 2019-06-08 00:09:08 +0200 |
| commit | cb7302fbe365cd079b7481720daf04e5e1925ac0 (patch) | |
| tree | 11d07c814ae6a5c07ad000ebaf4613e6db960dbb /tools/perf/scripts/python | |
| parent | i2c: acpi: export i2c_acpi_find_adapter_by_handle (diff) | |
| download | linux-cb7302fbe365cd079b7481720daf04e5e1925ac0.tar.gz linux-cb7302fbe365cd079b7481720daf04e5e1925ac0.zip | |
i2c: nvidia-gpu: refactor master_xfer
Added a local variable "send_stop" to simplify "goto" statements.
The "send_stop" handles below two case
1) When first i2c start fails and so i2c stop is not sent before
exiting
2) When i2c stop failed after all transfers and we do not need to
send another stop before exiting.
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
