Searched refs:moxart_rtc (Results 1 – 1 of 1) sorted by relevance
56 struct moxart_rtc { struct69 struct moxart_rtc *moxart_rtc = dev_get_drvdata(dev); in moxart_rtc_write_byte() local73 gpiod_set_value(moxart_rtc->gpio_sclk, 0); in moxart_rtc_write_byte()74 gpiod_set_value(moxart_rtc->gpio_data, ((data & 1) == 1)); in moxart_rtc_write_byte()76 gpiod_set_value(moxart_rtc->gpio_sclk, 1); in moxart_rtc_write_byte()83 struct moxart_rtc *moxart_rtc = dev_get_drvdata(dev); in moxart_rtc_read_byte() local88 gpiod_set_value(moxart_rtc->gpio_sclk, 0); in moxart_rtc_read_byte()90 gpiod_set_value(moxart_rtc->gpio_sclk, 1); in moxart_rtc_read_byte()92 if (gpiod_get_value(moxart_rtc->gpio_data)) in moxart_rtc_read_byte()101 struct moxart_rtc *moxart_rtc = dev_get_drvdata(dev); in moxart_rtc_read_register() local[all …]