mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	rtc: pcf85063: quiet maybe-unused variable warnings
pcf85063a_config and rv8263_config are only referenced by pcf85063_of_match, move them in the #ifdef CONFIG_OF section. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/20210202112219.3610853-12-alexandre.belloni@bootlin.com
This commit is contained in:
		
							parent
							
								
									ef886c440b
								
							
						
					
					
						commit
						c8ecbc783c
					
				
					 1 changed files with 19 additions and 19 deletions
				
			
		| 
						 | 
				
			
			@ -501,15 +501,6 @@ static struct clk *pcf85063_clkout_register_clk(struct pcf85063 *pcf85063)
 | 
			
		|||
}
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
static const struct pcf85063_config pcf85063a_config = {
 | 
			
		||||
	.regmap = {
 | 
			
		||||
		.reg_bits = 8,
 | 
			
		||||
		.val_bits = 8,
 | 
			
		||||
		.max_register = 0x11,
 | 
			
		||||
	},
 | 
			
		||||
	.has_alarms = 1,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
static const struct pcf85063_config pcf85063tp_config = {
 | 
			
		||||
	.regmap = {
 | 
			
		||||
		.reg_bits = 8,
 | 
			
		||||
| 
						 | 
				
			
			@ -518,16 +509,6 @@ static const struct pcf85063_config pcf85063tp_config = {
 | 
			
		|||
	},
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
static const struct pcf85063_config rv8263_config = {
 | 
			
		||||
	.regmap = {
 | 
			
		||||
		.reg_bits = 8,
 | 
			
		||||
		.val_bits = 8,
 | 
			
		||||
		.max_register = 0x11,
 | 
			
		||||
	},
 | 
			
		||||
	.has_alarms = 1,
 | 
			
		||||
	.force_cap_7000 = 1,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
static int pcf85063_probe(struct i2c_client *client)
 | 
			
		||||
{
 | 
			
		||||
	struct pcf85063 *pcf85063;
 | 
			
		||||
| 
						 | 
				
			
			@ -611,6 +592,25 @@ static int pcf85063_probe(struct i2c_client *client)
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
#ifdef CONFIG_OF
 | 
			
		||||
static const struct pcf85063_config pcf85063a_config = {
 | 
			
		||||
	.regmap = {
 | 
			
		||||
		.reg_bits = 8,
 | 
			
		||||
		.val_bits = 8,
 | 
			
		||||
		.max_register = 0x11,
 | 
			
		||||
	},
 | 
			
		||||
	.has_alarms = 1,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
static const struct pcf85063_config rv8263_config = {
 | 
			
		||||
	.regmap = {
 | 
			
		||||
		.reg_bits = 8,
 | 
			
		||||
		.val_bits = 8,
 | 
			
		||||
		.max_register = 0x11,
 | 
			
		||||
	},
 | 
			
		||||
	.has_alarms = 1,
 | 
			
		||||
	.force_cap_7000 = 1,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
static const struct of_device_id pcf85063_of_match[] = {
 | 
			
		||||
	{ .compatible = "nxp,pcf85063", .data = &pcf85063tp_config },
 | 
			
		||||
	{ .compatible = "nxp,pcf85063tp", .data = &pcf85063tp_config },
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue