st-asc.c (d5b3d02d0b107345f2a6ecb5b06f98356f5c97ab) | st-asc.c (643662d12bc2b38ca693d6707e8da11c4777a09f) |
---|---|
1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * st-asc.c: ST Asynchronous serial controller (ASC) driver 4 * 5 * Copyright (C) 2003-2013 STMicroelectronics (R&D) Limited 6 */ 7 8#include <linux/module.h> --- 740 unchanged lines hidden (view full) --- 749 if (id < 0) 750 id = 0; 751 752 if (WARN_ON(id >= ASC_MAX_PORTS)) 753 return NULL; 754 755 asc_ports[id].hw_flow_control = of_property_read_bool(np, 756 "uart-has-rtscts"); | 1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * st-asc.c: ST Asynchronous serial controller (ASC) driver 4 * 5 * Copyright (C) 2003-2013 STMicroelectronics (R&D) Limited 6 */ 7 8#include <linux/module.h> --- 740 unchanged lines hidden (view full) --- 749 if (id < 0) 750 id = 0; 751 752 if (WARN_ON(id >= ASC_MAX_PORTS)) 753 return NULL; 754 755 asc_ports[id].hw_flow_control = of_property_read_bool(np, 756 "uart-has-rtscts"); |
757 asc_ports[id].force_m1 = of_property_read_bool(np, "st,force_m1"); | 757 asc_ports[id].force_m1 = of_property_read_bool(np, "st,force-m1"); |
758 asc_ports[id].port.line = id; 759 asc_ports[id].rts = NULL; 760 761 return &asc_ports[id]; 762} 763 764#ifdef CONFIG_OF 765static const struct of_device_id asc_match[] = { --- 208 unchanged lines hidden --- | 758 asc_ports[id].port.line = id; 759 asc_ports[id].rts = NULL; 760 761 return &asc_ports[id]; 762} 763 764#ifdef CONFIG_OF 765static const struct of_device_id asc_match[] = { --- 208 unchanged lines hidden --- |