]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: altera-a10sr: Set proper output level for direction_output
authorAxel Lin <axel.lin@ingics.com>
Wed, 23 Jan 2019 00:00:57 +0000 (08:00 +0800)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 23 Jan 2019 16:24:02 +0000 (17:24 +0100)
commit2d2faa076441fd3d43f2e03037888cb4961819eb
treee9c6caffa5ee814eb7038e59572d6e88febaed41
parent2e49ed4984fd9e706774db9907672eb3e5cb76d7
gpio: altera-a10sr: Set proper output level for direction_output

The altr_a10sr_gpio_direction_output should set proper output level
based on the value argument.

Fixes: d91594e00e41 ("gpio: altera-a10sr: Add A10 System Resource Chip GPIO support.")
Cc: <stable@vger.kernel.org>
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Tested by: Thor Thayer <thor.thayer@linux.intel.com>
Reviewed by: Thor Thayer <thor.thayer@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-altera-a10sr.c