emc141x.c (d328fef93ae757a0dd65ed786a4086e27952eef3) | emc141x.c (e3d0814368d00e7985c31edf5d0cfce45972d4be) |
---|---|
1/* 2 * SMSC EMC141X temperature sensor. 3 * 4 * Copyright (c) 2020 Bytedance Corporation 5 * Written by John Wang <wangzhiqiang.bj@bytedance.com> 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License as --- 256 unchanged lines hidden (view full) --- 265 emc141x_set_temperature, NULL, NULL); 266} 267 268static void emc141x_class_init(ObjectClass *klass, void *data) 269{ 270 DeviceClass *dc = DEVICE_CLASS(klass); 271 I2CSlaveClass *k = I2C_SLAVE_CLASS(klass); 272 | 1/* 2 * SMSC EMC141X temperature sensor. 3 * 4 * Copyright (c) 2020 Bytedance Corporation 5 * Written by John Wang <wangzhiqiang.bj@bytedance.com> 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License as --- 256 unchanged lines hidden (view full) --- 265 emc141x_set_temperature, NULL, NULL); 266} 267 268static void emc141x_class_init(ObjectClass *klass, void *data) 269{ 270 DeviceClass *dc = DEVICE_CLASS(klass); 271 I2CSlaveClass *k = I2C_SLAVE_CLASS(klass); 272 |
273 dc->reset = emc141x_reset; | 273 device_class_set_legacy_reset(dc, emc141x_reset); |
274 k->event = emc141x_event; 275 k->recv = emc141x_rx; 276 k->send = emc141x_tx; 277 dc->vmsd = &vmstate_emc141x; 278} 279 280static void emc1413_class_init(ObjectClass *klass, void *data) 281{ --- 45 unchanged lines hidden --- | 274 k->event = emc141x_event; 275 k->recv = emc141x_rx; 276 k->send = emc141x_tx; 277 dc->vmsd = &vmstate_emc141x; 278} 279 280static void emc1413_class_init(ObjectClass *klass, void *data) 281{ --- 45 unchanged lines hidden --- |