ds1302: update header
authorAlan Cox <alan@linux.intel.com>
Sat, 25 Aug 2018 14:20:56 +0000 (15:20 +0100)
committerAlan Cox <alan@linux.intel.com>
Sat, 25 Aug 2018 14:20:56 +0000 (15:20 +0100)
Export more bits people need outside of the driver

Kernel/dev/ds1302.h

index ea76950..7227777 100644 (file)
@@ -4,11 +4,11 @@
 /* public interface */
 void ds1302_init(void);
 uint8_t platform_rtc_secs(void);
+void ds1302_read_clock(uint8_t *buffer, uint8_t length);
 
 #ifdef _DS1302_PRIVATE
 /* consult the DS1302 datasheet for data format;
    http://datasheets.maximintegrated.com/en/ds/DS1302.pdf table 3 */
-void ds1302_read_clock(uint8_t *buffer, uint8_t length);
 void ds1302_send_byte(uint8_t byte);
 
 uint8_t uint8_from_bcd(uint8_t value);