gpio: sx150x: Drop address from copyright header

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
This commit is contained in:
Stephen Boyd 2013-01-11 14:37:08 -08:00
parent bcc0fa8901
commit 9f47b1cbb3

View file

@ -8,11 +8,6 @@
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA.
*/
#include <linux/gpio.h>
#include <linux/i2c.h>
@ -189,9 +184,9 @@ static int sx150x_get_io(struct sx150x_chip *chip, unsigned offset)
return err;
}
static void sx150x_set_oscio(struct sx150x_chip *chip, int val)
static s32 sx150x_set_oscio(struct sx150x_chip *chip, int val)
{
sx150x_i2c_write(chip->client,
return sx150x_i2c_write(chip->client,
chip->dev_cfg->reg_clock,
(val ? 0x1f : 0x10));
}
@ -286,11 +281,13 @@ static int sx150x_gpio_direction_output(struct gpio_chip *gc,
chip = container_of(gc, struct sx150x_chip, gpio_chip);
if (!offset_is_oscio(chip, offset)) {
mutex_lock(&chip->lock);
mutex_lock(&chip->lock);
if (offset_is_oscio(chip, offset))
status = sx150x_set_oscio(chip, val);
else
status = sx150x_io_output(chip, offset, val);
mutex_unlock(&chip->lock);
}
mutex_unlock(&chip->lock);
return status;
}