Lines Matching +full:manufacturer +full:- +full:id
1 // SPDX-License-Identifier: GPL-2.0-or-later
48 return -ENXIO; in dps920ab_read_word_data()
64 return -EACCES; in dps920ab_write_word_data()
92 struct dps920ab_data *priv = s->private; in dps920ab_mfr_id_show()
94 seq_printf(s, "%s\n", priv->mfr_id); in dps920ab_mfr_id_show()
103 struct dps920ab_data *priv = s->private; in dps920ab_mfr_model_show()
105 seq_printf(s, "%s\n", priv->mfr_model); in dps920ab_mfr_model_show()
121 debugfs_dir = debugfs_create_dir(client->name, root); in dps920ab_init_debugfs()
142 data = devm_kzalloc(&client->dev, sizeof(*data), GFP_KERNEL); in dps920ab_probe()
144 return -ENOMEM; in dps920ab_probe()
148 dev_err(&client->dev, "Failed to read Manufacturer ID\n"); in dps920ab_probe()
155 dev_err(&client->dev, "Unsupported Manufacturer ID '%s'\n", buf); in dps920ab_probe()
156 return -ENODEV; in dps920ab_probe()
158 data->mfr_id = devm_kstrdup(&client->dev, buf, GFP_KERNEL); in dps920ab_probe()
159 if (!data->mfr_id) in dps920ab_probe()
160 return -ENOMEM; in dps920ab_probe()
164 dev_err(&client->dev, "Failed to read Manufacturer Model\n"); in dps920ab_probe()
169 if (ret != 11 || strncmp(buf, "DPS-920AB", 9)) { in dps920ab_probe()
170 dev_err(&client->dev, "Unsupported Manufacturer Model '%s'\n", buf); in dps920ab_probe()
171 return -ENODEV; in dps920ab_probe()
173 data->mfr_model = devm_kstrdup(&client->dev, buf, GFP_KERNEL); in dps920ab_probe()
174 if (!data->mfr_model) in dps920ab_probe()
175 return -ENOMEM; in dps920ab_probe()