mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	extcon: adc-jack: Use the internal data instead of using struct extcon_dev
This patch uses the internal dev instance instead of using the field of struct extcon_dev because the core structure (extcon_dev) of extcon have to be touched by only extcon core driver. Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
This commit is contained in:
		
							parent
							
								
									2f556bdb9f
								
							
						
					
					
						commit
						6e3a7e89ff
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -67,7 +67,7 @@ static void adc_jack_handler(struct work_struct *work) | |||
| 
 | ||||
| 	ret = iio_read_channel_raw(data->chan, &adc_val); | ||||
| 	if (ret < 0) { | ||||
| 		dev_err(&data->edev->dev, "read channel() error: %d\n", ret); | ||||
| 		dev_err(data->dev, "read channel() error: %d\n", ret); | ||||
| 		return; | ||||
| 	} | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Chanwoo Choi
						Chanwoo Choi