video: screen-timeing: sdk mipi: The frame rate increased from 44 to 55
[firefly-linux-kernel-4.4.55.git] / include / linux / adc.h
index be4547b038c411b8ea0febeaa1ff7a176ce31e70..178545e7e2ff265bc050eca9f2b5547f52658457 100755 (executable)
@@ -55,6 +55,14 @@ int adc_sync_read(struct adc_client *client);
  *     if timeout, sample value is -1; else sample value is non-negative\r
  */\r
 int adc_async_read(struct adc_client *client);\r
+/*\r
+ * function: return current reference voltage, unit: mV\r
+ */\r
+int adc_get_curr_ref_volt(void);\r
+/*\r
+ * function: return default reference voltage, unit: mV\r
+ */\r
+int adc_get_def_ref_volt(void);\r
 #else\r
 static inline struct adc_client *adc_register(int chn,\r
                                void (*callback)(struct adc_client *, void *, int),\r
@@ -65,6 +73,8 @@ static inline struct adc_client *adc_register(int chn,
 static inline void adc_unregister(struct adc_client *client) {}\r
 static inline int adc_sync_read(struct adc_client *client) { return -1; }\r
 static inline int adc_async_read(struct adc_client *client) { return -1; }\r
+static inline int adc_get_curr_ref_volt(void) { return -1; }\r
+static inline int adc_get_def_ref_volt(void) { return -1; }\r
 #endif\r
 \r
 #endif\r