/* This will set the gpio bit specified to the desired value. It will set the gpio pin low if value is 0 otherwise it will be high.  */
static void msp71xx_gpio_set(struct gpio_chip *chip, unsigned offset, int value)
/* This will set the gpio bit specified to the desired value. It will set the gpio pin low if value is 0 otherwise it will be high.  */
static void msp71xx_gpio_set(struct gpio_chip *chip, unsigned offset, int value)
{
	struct msp71xx_gpio_chip *msp_chip = to_msp71xx_gpio_chip(chip);
	unsigned long flags;
	u32 data;
	spin_lock_irqsave(&gpio_lock, flags);
	data = __raw_readl(msp_chip->data_reg);
	if (value)
		data |= (1 << offset);
	else
		data &= ~(1 << offset);
	__raw_writel(data, msp_chip->data_reg);
	spin_unlock_irqrestore(&gpio_lock, flags);
}