s5m8767.c (2ac5e38ea4203852d6e99edd3cf11f044b0a409f) | s5m8767.c (c32569e358adea225f053ef9d97a4c8c18be8743) |
---|---|
1// SPDX-License-Identifier: GPL-2.0+ 2// 3// Copyright (c) 2011 Samsung Electronics Co., Ltd 4// http://www.samsung.com 5 6#include <linux/err.h> 7#include <linux/of_gpio.h> 8#include <linux/gpio/consumer.h> --- 547 unchanged lines hidden (view full) --- 556 GFP_KERNEL); 557 if (!rmode) 558 return -ENOMEM; 559 560 pdata->regulators = rdata; 561 pdata->opmode = rmode; 562 for_each_child_of_node(regulators_np, reg_np) { 563 for (i = 0; i < ARRAY_SIZE(regulators); i++) | 1// SPDX-License-Identifier: GPL-2.0+ 2// 3// Copyright (c) 2011 Samsung Electronics Co., Ltd 4// http://www.samsung.com 5 6#include <linux/err.h> 7#include <linux/of_gpio.h> 8#include <linux/gpio/consumer.h> --- 547 unchanged lines hidden (view full) --- 556 GFP_KERNEL); 557 if (!rmode) 558 return -ENOMEM; 559 560 pdata->regulators = rdata; 561 pdata->opmode = rmode; 562 for_each_child_of_node(regulators_np, reg_np) { 563 for (i = 0; i < ARRAY_SIZE(regulators); i++) |
564 if (!of_node_cmp(reg_np->name, regulators[i].name)) | 564 if (of_node_name_eq(reg_np, regulators[i].name)) |
565 break; 566 567 if (i == ARRAY_SIZE(regulators)) { 568 dev_warn(iodev->dev, 569 "don't know how to configure regulator %pOFn\n", 570 reg_np); 571 continue; 572 } --- 443 unchanged lines hidden --- | 565 break; 566 567 if (i == ARRAY_SIZE(regulators)) { 568 dev_warn(iodev->dev, 569 "don't know how to configure regulator %pOFn\n", 570 reg_np); 571 continue; 572 } --- 443 unchanged lines hidden --- |