Skip to contentSkip to conversation

ARM: SAMSUNG: question about cfg_eint field of struct s3c_gpio_cfg

DISCUSSION Joonyoung Shim 2 participants 2 messages May 31, 2010 – Jun 3, 2010 Arm Samsung Exynos

lore
Share & tools
lore
#0 lore raw

Hi,

There is cfg_eint field in struct s3c_gpio_cfg at arch/arm/plat-samsung/include/plat/gpio-cfg.h. I don't know the usage of cfg_eint. It isn't used anywhere or just assigned. Does it need really?

struct s3c_gpio_cfg {
	unsigned int	cfg_eint;

	s3c_gpio_pull_t	(*get_pull)(struct s3c_gpio_chip *chip, unsigned offs);
	int		(*set_pull)(struct s3c_gpio_chip *chip, unsigned offs,
				    s3c_gpio_pull_t pull);

	unsigned (*get_config)(struct s3c_gpio_chip *chip, unsigned offs);
	int	 (*set_config)(struct s3c_gpio_chip *chip, unsigned offs,
			       unsigned config);
};
#1 lore raw
Quoted 5 lines · Joonyoung Shim

Hi,

There is cfg_eint field in struct s3c_gpio_cfg at arch/arm/plat-samsung/include/plat/gpio-cfg.h. I don't know the usage of cfg_eint. It isn't used anywhere or just assigned. Does it need really?

It was there for the interrupt code to configure the external-interrupt information, but it was never used. It probably wants deleting if we can't re-use it.

Signature · 4 lines
Ben

Q:      What's a light-year?
A:      One-third less calories than a regular year.