cx24113.c (c38e8657a471e9af42b86009e5d3085031b41fda) | cx24113.c (2d3da59ff163b2aa805de0fc65ba933a735b00cd) |
---|---|
1/* 2 * Driver for Conexant CX24113/CX24128 Tuner (Satellite) 3 * 4 * Copyright (C) 2007-8 Patrick Boettcher <pb@linuxtv.org> 5 * 6 * Developed for BBTI / Technisat 7 * 8 * This program is free software; you can redistribute it and/or modify --- 538 unchanged lines hidden (view full) --- 547 .get_frequency = cx24113_get_frequency, 548 .get_status = cx24113_get_status, 549}; 550 551struct dvb_frontend *cx24113_attach(struct dvb_frontend *fe, 552 const struct cx24113_config *config, struct i2c_adapter *i2c) 553{ 554 /* allocate memory for the internal state */ | 1/* 2 * Driver for Conexant CX24113/CX24128 Tuner (Satellite) 3 * 4 * Copyright (C) 2007-8 Patrick Boettcher <pb@linuxtv.org> 5 * 6 * Developed for BBTI / Technisat 7 * 8 * This program is free software; you can redistribute it and/or modify --- 538 unchanged lines hidden (view full) --- 547 .get_frequency = cx24113_get_frequency, 548 .get_status = cx24113_get_status, 549}; 550 551struct dvb_frontend *cx24113_attach(struct dvb_frontend *fe, 552 const struct cx24113_config *config, struct i2c_adapter *i2c) 553{ 554 /* allocate memory for the internal state */ |
555 struct cx24113_state *state = 556 kzalloc(sizeof(struct cx24113_state), GFP_KERNEL); | 555 struct cx24113_state *state = kzalloc(sizeof(*state), GFP_KERNEL); |
557 int rc; 558 559 if (!state) 560 goto error; 561 562 /* setup the state */ 563 state->config = config; 564 state->i2c = i2c; --- 48 unchanged lines hidden --- | 556 int rc; 557 558 if (!state) 559 goto error; 560 561 /* setup the state */ 562 state->config = config; 563 state->i2c = i2c; --- 48 unchanged lines hidden --- |