/* * metronomefb.h - definitions for the metronome framebuffer driver * * Copyright (C) 2008 by Jaya Kumar * * This file is subject to the terms and conditions of the GNU General Public * License. See the file COPYING in the main directory of this archive for * more details. * */ #ifndef _LINUX_METRONOMEFB_H_ #define _LINUX_METRONOMEFB_H_ /* command structure used by metronome controller */ struct metromem_cmd { u16 opcode; u16 args[((64-2)/2)]; u16 csum; }; /* struct used by metronome. board specific stuff comes from *board */ struct metronomefb_par { struct metromem_cmd *metromem_cmd; unsigned char *metromem_wfm; unsigned char *metromem_img; u16 *metromem_img_csum; u16 *csum_table; dma_addr_t metromem_dma; struct fb_info *info; struct metronome_board *board; wait_queue_head_t waitq; u8 frame_count; int extra_size; int dt; }; /* board specific routines and data */ struct metronome_board { struct module *owner; /* the platform device */ void (*set_rst)(struct metronomefb_par *, int); void (*set_stdby)(struct metronomefb_par *, int); void (*cleanup)(struct metronomefb_par *); int (*met_wait_event)(struct metronomefb_par *); int (*met_wait_event_intr)(struct metronomefb_par *); int (*setup_irq)(struct fb_info *); int (*setup_fb)(struct metronomefb_par *); int (*setup_io)(struct metronomefb_par *); int (*get_panel_type)(void); unsigned char *metromem; int fw; int fh; int wfm_size; struct fb_info *host_fbinfo; /* the host LCD controller's fbi */ }; #endif > summaryrefslogtreecommitdiff
path: root/drivers/usb/misc/usbtest.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/misc/usbtest.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/misc/usbtest.c')