/* * File: sound/soc/codec/ad73311.h * Based on: * Author: Cliff Cai * * Created: Thur Sep 25, 2008 * Description: definitions for AD73311 registers * * * Modified: * Copyright 2006 Analog Devices Inc. * * Bugs: Enter bugs at http://blackfin.uclinux.org/ * * 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, see the file COPYING, or write * to the Free Software Foundation, Inc., * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef __AD73311_H__ #define __AD73311_H__ #define AD_CONTROL 0x8000 #define AD_DATA 0x0000 #define AD_READ 0x4000 #define AD_WRITE 0x0000 /* Control register A */ #define CTRL_REG_A (0 << 8) #define REGA_MODE_PRO 0x00 #define REGA_MODE_DATA 0x01 #define REGA_MODE_MIXED 0x03 #define REGA_DLB 0x04 #define REGA_SLB 0x08 #define REGA_DEVC(x) ((x & 0x7) << 4) #define REGA_RESET 0x80 /* Control register B */ #define CTRL_REG_B (1 << 8) #define REGB_DIRATE(x) (x & 0x3) #define REGB_SCDIV(x) ((x & 0x3) << 2) #define REGB_MCDIV(x) ((x & 0x7) << 4) #define REGB_CEE (1 << 7) /* Control register C */ #define CTRL_REG_C (2 << 8) #define REGC_PUDEV (1 << 0) #define REGC_PUADC (1 << 3) #define REGC_PUDAC (1 << 4) #define REGC_PUREF (1 << 5) #define REGC_REFUSE (1 << 6) /* Control register D */ #define CTRL_REG_D (3 << 8) #define REGD_IGS(x) (x & 0x7) #define REGD_RMOD (1 << 3) #define REGD_OGS(x) ((x & 0x7) << 4) #define REGD_MUTE (1 << 7) /* Control register E */ #define CTRL_REG_E (4 << 8) #define REGE_DA(x) (x & 0x1f) #define REGE_IBYP (1 << 5) /* Control register F */ #define CTRL_REG_F (5 << 8) #define REGF_SEEN (1 << 5) #define REGF_INV (1 << 6) #define REGF_ALB (1 << 7) #endif mp;id=c73e44269369e936165f0f9b61f1f09a11dae01c'>diff
path: root/drivers/usb/c67x00/c67x00-ll-hpi.c
diff options
context:
space:
mode:
authorVincent <vincent.stehle@laposte.net>2017-01-30 15:06:43 +0100
committerDavid S. Miller <davem@davemloft.net>2017-01-31 13:07:40 -0500
commitc73e44269369e936165f0f9b61f1f09a11dae01c (patch)
treee2188e900ba06302f8ed2746cb07edd3efbc5c35 /drivers/usb/c67x00/c67x00-ll-hpi.c
parent040587af31228d82c52267f717c9fcdb65f36335 (diff)
net: thunderx: avoid dereferencing xcv when NULL
This fixes the following smatch and coccinelle warnings: drivers/net/ethernet/cavium/thunder/thunder_xcv.c:119 xcv_setup_link() error: we previously assumed 'xcv' could be null (see line 118) [smatch] drivers/net/ethernet/cavium/thunder/thunder_xcv.c:119:16-20: ERROR: xcv is NULL but dereferenced. [coccinelle] Fixes: 6465859aba1e66a5 ("net: thunderx: Add RGMII interface type support") Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net> Cc: Sunil Goutham <sgoutham@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/usb/c67x00/c67x00-ll-hpi.c')