ti-tfp410.c (4f2c0a4acffbec01079c28f839422e64ddeff004) ti-tfp410.c (612e241fb4bcd98d8ff9da7a795abb86b8ccfe38)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2016 Texas Instruments
4 * Author: Jyri Sarha <jsarha@ti.com>
5 */
6
7#include <linux/gpio/consumer.h>
8#include <linux/i2c.h>

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

374 .driver = {
375 .name = "tfp410-bridge",
376 .of_match_table = tfp410_match,
377 },
378};
379
380#if IS_ENABLED(CONFIG_I2C)
381/* There is currently no i2c functionality. */
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2016 Texas Instruments
4 * Author: Jyri Sarha <jsarha@ti.com>
5 */
6
7#include <linux/gpio/consumer.h>
8#include <linux/i2c.h>

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

374 .driver = {
375 .name = "tfp410-bridge",
376 .of_match_table = tfp410_match,
377 },
378};
379
380#if IS_ENABLED(CONFIG_I2C)
381/* There is currently no i2c functionality. */
382static int tfp410_i2c_probe(struct i2c_client *client,
383 const struct i2c_device_id *id)
382static int tfp410_i2c_probe(struct i2c_client *client)
384{
385 int reg;
386
387 if (!client->dev.of_node ||
388 of_property_read_u32(client->dev.of_node, "reg", &reg)) {
389 dev_err(&client->dev,
390 "Can't get i2c reg property from device-tree\n");
391 return -ENXIO;

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

406MODULE_DEVICE_TABLE(i2c, tfp410_i2c_ids);
407
408static struct i2c_driver tfp410_i2c_driver = {
409 .driver = {
410 .name = "tfp410",
411 .of_match_table = of_match_ptr(tfp410_match),
412 },
413 .id_table = tfp410_i2c_ids,
383{
384 int reg;
385
386 if (!client->dev.of_node ||
387 of_property_read_u32(client->dev.of_node, "reg", &reg)) {
388 dev_err(&client->dev,
389 "Can't get i2c reg property from device-tree\n");
390 return -ENXIO;

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

405MODULE_DEVICE_TABLE(i2c, tfp410_i2c_ids);
406
407static struct i2c_driver tfp410_i2c_driver = {
408 .driver = {
409 .name = "tfp410",
410 .of_match_table = of_match_ptr(tfp410_match),
411 },
412 .id_table = tfp410_i2c_ids,
414 .probe = tfp410_i2c_probe,
413 .probe_new = tfp410_i2c_probe,
415 .remove = tfp410_i2c_remove,
416};
417#endif /* IS_ENABLED(CONFIG_I2C) */
418
419static struct {
420 uint i2c:1;
421 uint platform:1;
422} tfp410_registered_driver;

--- 43 unchanged lines hidden ---
414 .remove = tfp410_i2c_remove,
415};
416#endif /* IS_ENABLED(CONFIG_I2C) */
417
418static struct {
419 uint i2c:1;
420 uint platform:1;
421} tfp410_registered_driver;

--- 43 unchanged lines hidden ---