/* * ALSA Driver for the PT2258 volume controller. * * Copyright (c) 2006 Jochen Voss * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ #ifndef __SOUND_PT2258_H #define __SOUND_PT2258_H struct snd_pt2258 { struct snd_card *card; struct snd_i2c_bus *i2c_bus; struct snd_i2c_device *i2c_dev; unsigned char volume[6]; int mute; }; extern int snd_pt2258_reset(struct snd_pt2258 *pt); extern int snd_pt2258_build_controls(struct snd_pt2258 *pt); #endif /* __SOUND_PT2258_H */ op-back net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/tools/lib/api/fs
='3' selected='selected'>3
AgeCommit message (Expand)AuthorFilesLines
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2016-12-18 10:19:28 +0100
committerJohan Hovold <johan@kernel.org>2017-01-02 10:31:08 +0100
commit427157631648c980e8bba4d73a21508b9e1a47ec (patch)
tree7a72996439dd2c52ba443262a4af93628ed151d9 /net/ncsi/Kconfig
parent0c744ea4f77d72b3dcebb7a8f2684633ec79be88 (diff)
USB: serial: f81534: detect errors from f81534_logic_to_phy_port()
With gcc 4.1.2: drivers/usb/serial/f81534.c: In function ‘f81534_port_probe’: drivers/usb/serial/f81534.c:1250: warning: comparison is always false due to limited range of data type f81534_logic_to_phy_port() may return a negative error value, which is ignored by assigning it to u8 f81534_port_private.phy_num. Use an intermediate variable of type int to fix this. While at it, forward the actual error code instead of converting it to -ENODEV, and drop the useless check for F81534_NUM_PORT, as the callee always returns a valid port number in case of success. Fixes: 0c9bd6004d258d46 ("USB: serial: add Fintek F81532/534 driver") Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'net/ncsi/Kconfig')