power: regulator: lp87565: get_enable should return integer
get_enable should be able to return error values. Hence change the return type to integer. Signed-off-by: Keerthy <j-keerthy@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
		
							parent
							
								
									43d0247e3e
								
							
						
					
					
						commit
						a79e8dfed6
					
				|  | @ -166,7 +166,7 @@ static int buck_set_value(struct udevice *dev, int uV) | |||
| 	return lp87565_buck_val(dev, PMIC_OP_SET, &uV); | ||||
| } | ||||
| 
 | ||||
| static bool buck_get_enable(struct udevice *dev) | ||||
| static int buck_get_enable(struct udevice *dev) | ||||
| { | ||||
| 	bool enable = false; | ||||
| 	int ret; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue