mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	gpio: wcd934x: Don't change gpio direction in wcd_gpio_set
The .set callback should just set output value. Signed-off-by: Axel Lin <axel.lin@ingics.com> Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
This commit is contained in:
		
							parent
							
								
									a630fe34dd
								
							
						
					
					
						commit
						47d7d11666
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -66,7 +66,10 @@ static int wcd_gpio_get(struct gpio_chip *chip, unsigned int pin) | |||
| 
 | ||||
| static void wcd_gpio_set(struct gpio_chip *chip, unsigned int pin, int val) | ||||
| { | ||||
| 	wcd_gpio_direction_output(chip, pin, val); | ||||
| 	struct wcd_gpio_data *data = gpiochip_get_data(chip); | ||||
| 
 | ||||
| 	regmap_update_bits(data->map, WCD_REG_VAL_CTL_OFFSET, | ||||
| 			   WCD_PIN_MASK(pin), val ? WCD_PIN_MASK(pin) : 0); | ||||
| } | ||||
| 
 | ||||
| static int wcd_gpio_probe(struct platform_device *pdev) | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Axel Lin
						Axel Lin