sp2.c (29583dfcd2dd72c766422bd05c16f06c6b1fb356) sp2.c (06a61dc55ab237f9f30f248c9fa7e35ddbad6d37)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * CIMaX SP2/SP2HF (Atmel T90FJR) CI driver
4 *
5 * Copyright (C) 2014 Olli Salonen <olli.salonen@iki.fi>
6 *
7 * Heavily based on CIMax2(R) SP2 driver in conjunction with NetUp Dual
8 * DVB-S2 CI card (cimax2) with following copyrights:

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

358 if (!s->ca.data)
359 return 0;
360
361 dvb_ca_en50221_release(&s->ca);
362
363 return 0;
364}
365
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * CIMaX SP2/SP2HF (Atmel T90FJR) CI driver
4 *
5 * Copyright (C) 2014 Olli Salonen <olli.salonen@iki.fi>
6 *
7 * Heavily based on CIMax2(R) SP2 driver in conjunction with NetUp Dual
8 * DVB-S2 CI card (cimax2) with following copyrights:

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

358 if (!s->ca.data)
359 return 0;
360
361 dvb_ca_en50221_release(&s->ca);
362
363 return 0;
364}
365
366static int sp2_probe(struct i2c_client *client,
367 const struct i2c_device_id *id)
366static int sp2_probe(struct i2c_client *client)
368{
369 struct sp2_config *cfg = client->dev.platform_data;
370 struct sp2 *s;
371 int ret;
372
373 dev_dbg(&client->dev, "\n");
374
375 s = kzalloc(sizeof(*s), GFP_KERNEL);

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

412 {}
413};
414MODULE_DEVICE_TABLE(i2c, sp2_id);
415
416static struct i2c_driver sp2_driver = {
417 .driver = {
418 .name = "sp2",
419 },
367{
368 struct sp2_config *cfg = client->dev.platform_data;
369 struct sp2 *s;
370 int ret;
371
372 dev_dbg(&client->dev, "\n");
373
374 s = kzalloc(sizeof(*s), GFP_KERNEL);

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

411 {}
412};
413MODULE_DEVICE_TABLE(i2c, sp2_id);
414
415static struct i2c_driver sp2_driver = {
416 .driver = {
417 .name = "sp2",
418 },
420 .probe = sp2_probe,
419 .probe_new = sp2_probe,
421 .remove = sp2_remove,
422 .id_table = sp2_id,
423};
424
425module_i2c_driver(sp2_driver);
426
427MODULE_DESCRIPTION("CIMaX SP2/HF CI driver");
428MODULE_AUTHOR("Olli Salonen <olli.salonen@iki.fi>");
429MODULE_LICENSE("GPL");
420 .remove = sp2_remove,
421 .id_table = sp2_id,
422};
423
424module_i2c_driver(sp2_driver);
425
426MODULE_DESCRIPTION("CIMaX SP2/HF CI driver");
427MODULE_AUTHOR("Olli Salonen <olli.salonen@iki.fi>");
428MODULE_LICENSE("GPL");