ntc_thermistor.c (cb54b53adae70701bdd77d848cea4b9b39b61cf9) ntc_thermistor.c (a8b3a3a53f9a814e9938ea9cc179086ff5c0a387)
1/*
2 * ntc_thermistor.c - NTC Thermistors
3 *
4 * Copyright (C) 2010 Samsung Electronics
5 * MyungJoo Ham <myungjoo.ham@samsung.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

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

419 struct ntc_thermistor_platform_data *pdata;
420 struct ntc_data *data;
421 int ret;
422
423 pdata = ntc_thermistor_parse_dt(pdev);
424 if (IS_ERR(pdata))
425 return PTR_ERR(pdata);
426 else if (pdata == NULL)
1/*
2 * ntc_thermistor.c - NTC Thermistors
3 *
4 * Copyright (C) 2010 Samsung Electronics
5 * MyungJoo Ham <myungjoo.ham@samsung.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

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

419 struct ntc_thermistor_platform_data *pdata;
420 struct ntc_data *data;
421 int ret;
422
423 pdata = ntc_thermistor_parse_dt(pdev);
424 if (IS_ERR(pdata))
425 return PTR_ERR(pdata);
426 else if (pdata == NULL)
427 pdata = pdev->dev.platform_data;
427 pdata = dev_get_platdata(&pdev->dev);
428
429 if (!pdata) {
430 dev_err(&pdev->dev, "No platform init data supplied.\n");
431 return -ENODEV;
432 }
433
434 /* Either one of the two is required. */
435 if (!pdata->read_uv && !pdata->read_ohm) {

--- 102 unchanged lines hidden ---
428
429 if (!pdata) {
430 dev_err(&pdev->dev, "No platform init data supplied.\n");
431 return -ENODEV;
432 }
433
434 /* Either one of the two is required. */
435 if (!pdata->read_uv && !pdata->read_ohm) {

--- 102 unchanged lines hidden ---