xc5000.c (e98bdb3059cbf2b1cd4261e126b08429f64466c3) | xc5000.c (5b5e0928f742cfa853b2411400a1b19fa379d758) |
---|---|
1/* 2 * Driver for Xceive XC5000 "QAM/8VSB single chip tuner" 3 * 4 * Copyright (c) 2007 Xceive Corporation 5 * Copyright (c) 2007 Steven Toth <stoth@linuxtv.org> 6 * Copyright (c) 2009 Devin Heitmueller <dheitmueller@kernellabs.com> 7 * 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation; either version 2 of the License, or 11 * (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * 17 * GNU General Public License for more details. | 1/* 2 * Driver for Xceive XC5000 "QAM/8VSB single chip tuner" 3 * 4 * Copyright (c) 2007 Xceive Corporation 5 * Copyright (c) 2007 Steven Toth <stoth@linuxtv.org> 6 * Copyright (c) 2009 Devin Heitmueller <dheitmueller@kernellabs.com> 7 * 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation; either version 2 of the License, or 11 * (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * 17 * GNU General Public License for more details. |
18 * 19 * You should have received a copy of the GNU General Public License 20 * along with this program; if not, write to the Free Software 21 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
22 */ 23 24#include <linux/module.h> 25#include <linux/moduleparam.h> 26#include <linux/videodev2.h> 27#include <linux/delay.h> 28#include <linux/workqueue.h> 29#include <linux/dvb/frontend.h> --- 1113 unchanged lines hidden (view full) --- 1143 1144 if (!priv->firmware) { 1145 ret = request_firmware(&fw, desired_fw->name, 1146 priv->i2c_props.adap->dev.parent); 1147 if (ret) { 1148 pr_err("xc5000: Upload failed. rc %d\n", ret); 1149 return ret; 1150 } | 18 */ 19 20#include <linux/module.h> 21#include <linux/moduleparam.h> 22#include <linux/videodev2.h> 23#include <linux/delay.h> 24#include <linux/workqueue.h> 25#include <linux/dvb/frontend.h> --- 1113 unchanged lines hidden (view full) --- 1139 1140 if (!priv->firmware) { 1141 ret = request_firmware(&fw, desired_fw->name, 1142 priv->i2c_props.adap->dev.parent); 1143 if (ret) { 1144 pr_err("xc5000: Upload failed. rc %d\n", ret); 1145 return ret; 1146 } |
1151 dprintk(1, "firmware read %Zu bytes.\n", fw->size); | 1147 dprintk(1, "firmware read %zu bytes.\n", fw->size); |
1152 1153 if (fw->size != desired_fw->size) { 1154 pr_err("xc5000: Firmware file with incorrect size\n"); 1155 release_firmware(fw); 1156 return -EINVAL; 1157 } 1158 priv->firmware = fw; 1159 } else --- 340 unchanged lines hidden --- | 1148 1149 if (fw->size != desired_fw->size) { 1150 pr_err("xc5000: Firmware file with incorrect size\n"); 1151 release_firmware(fw); 1152 return -EINVAL; 1153 } 1154 priv->firmware = fw; 1155 } else --- 340 unchanged lines hidden --- |