ds3000.c (d303b7c5b2660d93ba0dd2bf99b7dfa7bb93de73) ds3000.c (2d3da59ff163b2aa805de0fc65ba933a735b00cd)
1/*
2 Montage Technology DS3000 - DVBS/S2 Demodulator driver
3 Copyright (C) 2009-2012 Konstantin Dimitrov <kosio.dimitrov@gmail.com>
4
5 Copyright (C) 2009-2012 TurboSight.com
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by

--- 825 unchanged lines hidden (view full) ---

834 struct i2c_adapter *i2c)
835{
836 struct ds3000_state *state;
837 int ret;
838
839 dprintk("%s\n", __func__);
840
841 /* allocate memory for the internal state */
1/*
2 Montage Technology DS3000 - DVBS/S2 Demodulator driver
3 Copyright (C) 2009-2012 Konstantin Dimitrov <kosio.dimitrov@gmail.com>
4
5 Copyright (C) 2009-2012 TurboSight.com
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by

--- 825 unchanged lines hidden (view full) ---

834 struct i2c_adapter *i2c)
835{
836 struct ds3000_state *state;
837 int ret;
838
839 dprintk("%s\n", __func__);
840
841 /* allocate memory for the internal state */
842 state = kzalloc(sizeof(struct ds3000_state), GFP_KERNEL);
842 state = kzalloc(sizeof(*state), GFP_KERNEL);
843 if (!state)
844 goto error2;
845
846 state->config = config;
847 state->i2c = i2c;
848 state->prevUCBS2 = 0;
849
850 /* check if the demod is present */

--- 296 unchanged lines hidden ---
843 if (!state)
844 goto error2;
845
846 state->config = config;
847 state->i2c = i2c;
848 state->prevUCBS2 = 0;
849
850 /* check if the demod is present */

--- 296 unchanged lines hidden ---